We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b9c6bd commit de464d3Copy full SHA for de464d3
resources/scripts/state/server/files.ts
@@ -24,7 +24,7 @@ const files: ServerFileStore = {
24
25
const contents = await loadDirectory(server.uuid, payload);
26
27
- actions.setDirectory(payload);
+ actions.setDirectory(payload.length === 0 ? '/' : payload);
28
actions.setContents(contents);
29
}),
30
@@ -47,7 +47,7 @@ const files: ServerFileStore = {
47
48
49
setDirectory: action((state, payload) => {
50
- state.directory = payload;
+ state.directory = payload.length === 0 ? '/' : payload;
51
52
};
53
0 commit comments