This commit is contained in:
burnettk 2024-01-30 13:18:44 -05:00
parent b4f85925d6
commit 4cb1f33ac9
No known key found for this signature in database
1 changed files with 11 additions and 13 deletions

View File

@ -37,8 +37,7 @@ export default function DataStoreListTiles({
);
useEffect(() => {
if (permissionsLoaded) {
if (ability.can('GET', targetUris.dataStoreListPath)) {
if (permissionsLoaded && ability.can('GET', targetUris.dataStoreListPath)) {
if (defaultDataStores) {
setDataStores(defaultDataStores);
} else {
@ -52,7 +51,6 @@ export default function DataStoreListTiles({
});
}
}
}
}, [
searchParams,
dataStore,