Skip to content

Commit

Permalink
fix: TS 5.5 ui errors
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jun 26, 2024
1 parent fd7ddf6 commit 478692f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"release-it-yarn-workspaces": "^3.0.0",
"ts-jest": "^29.1.1",
"ts-node-dev": "^2.0.0",
"typescript": "^5.1.6"
"typescript": "^5.5.2"
},
"release-it": {
"plugins": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/hooks/useDetailsTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function useDetailsTabs(currentStatus: Status, isJobFailed: boolean) {
);

useEffect(() => {
let nextState = availableJobTabs.filter((tab) => tab !== 'Error');
let nextState: TabsType[] = availableJobTabs.filter((tab) => tab !== 'Error');
if (isJobFailed) {
nextState = [...nextState, 'Error'];
} else if (currentStatus === STATUSES.failed) {
Expand Down
7 changes: 6 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14543,11 +14543,16 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==

typescript@^5.1.3, typescript@^5.1.6:
typescript@^5.1.3:
version "5.2.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.2.2.tgz#5ebb5e5a5b75f085f22bc3f8460fba308310fa78"
integrity sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==

typescript@^5.5.2:
version "5.5.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507"
integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew==

uc.micro@^2.0.0, uc.micro@^2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/uc.micro/-/uc.micro-2.1.0.tgz#f8d3f7d0ec4c3dea35a7e3c8efa4cb8b45c9e7ee"
Expand Down

0 comments on commit 478692f

Please sign in to comment.