fix: check if file management is on before getting files (#7163)

added check before getting files from new api
This commit is contained in:
Lucas Oliveira 2025-03-19 21:34:21 -03:00 committed by GitHub
commit 5fdc70b98c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,7 +143,9 @@ export default function InputFileComponent({
const isDisabled = disabled || isPending;
const { data: files } = useGetFilesV2();
const { data: files } = useGetFilesV2({
enabled: !!ENABLE_FILE_MANAGEMENT,
});
const selectedFiles = (
isList