Skip to content

Commit

Permalink
fix: BadWorkspacePath error now show workspace id to debug
Browse files Browse the repository at this point in the history
fixes #588
  • Loading branch information
linonetwo committed Nov 24, 2024
1 parent ecf64e3 commit e167ec5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/pages/Main/PageIconAndSelector/PageSelectorBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ export function PageSelectorBase({
const [shortPageName, shortPageNameSetter] = useState<string>(t('Loading'));
useEffect(() => {
void window.service.native.path('basename', pageName).then((baseName) => {
shortPageNameSetter(baseName ?? t('WorkspaceSelector.BadWorkspacePath'));
shortPageNameSetter(baseName ?? (id + t('WorkspaceSelector.BadWorkspacePath')));
});
}, [pageName, t]);
}, [id, pageName, t]);
return (
<Root
$active={active}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ export function WorkspaceSelectorBase({
const [shortWorkspaceName, shortWorkspaceNameSetter] = useState<string>(t('Loading'));
useEffect(() => {
void window.service.native.path('basename', workspaceName).then((baseName) => {
shortWorkspaceNameSetter(baseName ?? t('WorkspaceSelector.BadWorkspacePath'));
shortWorkspaceNameSetter(baseName ?? (id + t('WorkspaceSelector.BadWorkspacePath')));
});
}, [workspaceName, t]);
}, [workspaceName, t, id]);
let icon = showSideBarIcon && (
<Avatar
$large={!showSidebarTexts}
Expand Down

0 comments on commit e167ec5

Please sign in to comment.