Merge branch 'feat/dynamic-file-controller' into develop
This commit is contained in:
commit
a2d109ab6a
1 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ export async function createFile(path: string[], file: string, props?: FileProps
|
|||
...props,
|
||||
path,
|
||||
file,
|
||||
hidden: false,
|
||||
hidden: path.some((v) => v.startsWith(".")),
|
||||
}),
|
||||
}).catch((e) => console.error(e));
|
||||
|
||||
|
|
@ -123,7 +123,7 @@ export async function list(operation: "file" | "folder", path: string[]) {
|
|||
Authorization: `Bearer ${await getToken()}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({ operation, path, hidden: false }),
|
||||
body: JSON.stringify({ operation, path, hidden: true }),
|
||||
}).catch((e) => console.error(e));
|
||||
|
||||
if (!res || !res.ok) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue