Skip to content

Commit

Permalink
fix: Cannot read properties of null (reading 'tbar')
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Jan 27, 2024
1 parent e79f450 commit 565c492
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,10 @@ const upgradeV3_5_0: CompanionStaticUpgradeScript<Config> = (_context, props): C
updatedFeedbacks: []
}

if (config.tbar !== undefined) delete config.tbar
if (config && config.tbar !== undefined) {
delete config.tbar
changes.updatedConfig = config
}

actions.forEach((action: any) => {
if (action.actionId === 'tbar') {
Expand Down

0 comments on commit 565c492

Please sign in to comment.