Skip to content

Commit

Permalink
fix type for tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 27, 2023
1 parent 5e9d7af commit 1751285
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/app/mirrors/edit/[mirrorId]/cdc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ export function CDCMirror({

useEffect(() => {
if (typeof window !== 'undefined') {
setSelectedTab(parseInt(localStorage?.getItem(LocalStorageTabKey)) | 0);
setSelectedTab(
parseInt(localStorage?.getItem(LocalStorageTabKey) ?? '0') | 0
);
}
}, []);

Expand Down

0 comments on commit 1751285

Please sign in to comment.