fix render error after build

This commit is contained in:
codetypes committed 2025-04-22 09:08:34 +08:00
1 parent e21c32e800
commit ef10851e64
3 files changed
+24 -20

No files matched your search

-1
View File
@@ -519,7 +519,6 @@ export const useWorkspace = create<WorkspaceStore>((set, get) => ({
edit: (path, focusId) => {
const workspace = get();
const setting = useSetting.getState();
const editor = workspace.editors.find((v) => v.path === path);
if (editor) {
editor.focusId = focusId;