Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
laisspportugal committed Nov 21, 2024
1 parent 0ada6cb commit 7f45be6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/suite-base/src/players/UserScriptPlayer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ export default class UserScriptPlayer implements Player {
if (!messagesByTopic[outTopic]) {
messagesByTopic[outTopic] = [];

Check failure on line 330 in packages/suite-base/src/players/UserScriptPlayer/index.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Object is possibly 'undefined'.

Check failure on line 330 in packages/suite-base/src/players/UserScriptPlayer/index.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Object is possibly 'undefined'.
}
messagesByTopic[outTopic]?.push(outputMessage);
messagesByTopic[outTopic].push(outputMessage);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/suite-base/src/util/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ function getLayoutWithNewPanelIds(
for (const key in layout) {
if (typeof layout[key] === "object" && !Array.isArray(layout[key])) {
newLayout[key] = getLayoutWithNewPanelIds(layout[key] as IndexableMosaic, panelIdMap);
} else if (typeof layout[key] === "string" && panelIdMap[layout[key] as string] != undefined) {
newLayout[key] = panelIdMap[layout[key] as string];
} else if (typeof layout[key] === "string" && panelIdMap[layout[key]] != undefined) {

Check failure on line 125 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.

Check failure on line 125 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.

Check failure on line 125 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.
newLayout[key] = panelIdMap[layout[key]];

Check failure on line 126 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.

Check failure on line 126 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.

Check failure on line 126 in packages/suite-base/src/util/layout.ts

View workflow job for this annotation

GitHub Actions / packages (ubuntu-20.04)

Type 'unknown' cannot be used as an index type.
} else {
newLayout[key] = layout[key];
}
Expand Down

0 comments on commit 7f45be6

Please sign in to comment.