@sanity/sanity-plugin-async-list

3.0.43.0.5
dist/index.js
~dist/index.jsModified
+1−1
Index: package/dist/index.js
===================================================================
--- package/dist/index.js
+++ package/dist/index.js
@@ -61,9 +61,9 @@
 		secrets,
 		client
 	]);
 	useEffect(() => {
-		options?.secrets?.keys && !secrets || !props.value && !data && fetchData();
+		(!options?.secrets?.keys || secrets) && !props.value && !data && fetchData();
 	}, [
 		fetchData,
 		data,
 		secrets,