fix: check if file management is on before getting files (#7163)
added check before getting files from new api
This commit is contained in:
parent
1a786ab40d
commit
5fdc70b98c
1 changed files with 3 additions and 1 deletions
|
|
@ -143,7 +143,9 @@ export default function InputFileComponent({
|
||||||
|
|
||||||
const isDisabled = disabled || isPending;
|
const isDisabled = disabled || isPending;
|
||||||
|
|
||||||
const { data: files } = useGetFilesV2();
|
const { data: files } = useGetFilesV2({
|
||||||
|
enabled: !!ENABLE_FILE_MANAGEMENT,
|
||||||
|
});
|
||||||
|
|
||||||
const selectedFiles = (
|
const selectedFiles = (
|
||||||
isList
|
isList
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue