mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 06:24:44 +02:00
Prevent a double file manager load
This commit is contained in:
parent
0b9c6bd21d
commit
de464d35a2
@ -24,7 +24,7 @@ const files: ServerFileStore = {
|
||||
|
||||
const contents = await loadDirectory(server.uuid, payload);
|
||||
|
||||
actions.setDirectory(payload);
|
||||
actions.setDirectory(payload.length === 0 ? '/' : payload);
|
||||
actions.setContents(contents);
|
||||
}),
|
||||
|
||||
@ -47,7 +47,7 @@ const files: ServerFileStore = {
|
||||
}),
|
||||
|
||||
setDirectory: action((state, payload) => {
|
||||
state.directory = payload;
|
||||
state.directory = payload.length === 0 ? '/' : payload;
|
||||
}),
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user