mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 14:53:45 +02:00
Prevent a double file manager load
This commit is contained in:
@@ -24,7 +24,7 @@ const files: ServerFileStore = {
|
|||||||
|
|
||||||
const contents = await loadDirectory(server.uuid, payload);
|
const contents = await loadDirectory(server.uuid, payload);
|
||||||
|
|
||||||
actions.setDirectory(payload);
|
actions.setDirectory(payload.length === 0 ? '/' : payload);
|
||||||
actions.setContents(contents);
|
actions.setContents(contents);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ const files: ServerFileStore = {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
setDirectory: action((state, payload) => {
|
setDirectory: action((state, payload) => {
|
||||||
state.directory = payload;
|
state.directory = payload.length === 0 ? '/' : payload;
|
||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user