add initialData to queries
This commit is contained in:
@@ -49,7 +49,7 @@ export default function UploadFileModal({ onClose }: Props) {
|
||||
const [submitLoader, setSubmitLoader] = useState(false);
|
||||
const [optionsExpanded, setOptionsExpanded] = useState(false);
|
||||
const router = useRouter();
|
||||
const { data: collections = [] } = useCollections();
|
||||
const { data: collections } = useCollections();
|
||||
|
||||
const setCollection = (e: any) => {
|
||||
if (e?.__isNew__) e.value = null;
|
||||
|
||||
Reference in New Issue
Block a user