Skip to content

Commit 83ba7ff

Browse files
fixed fileview not updating bug
1 parent 8754f60 commit 83ba7ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commons/fileSystem/FileSystemReducer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ export const FileSystemReducer: Reducer<FileSystemState, SourceActionType> = cre
156156
})
157157
.addCase(updateRefreshFileViewKey, (state, action) => {
158158
state.refreshFileViewKey = (state.refreshFileViewKey + 1) % 2;
159+
state.lastEditedFilePath = "";
159160
})
160161
}
161162
);

0 commit comments

Comments
 (0)