From 4cb1f33ac92da32d8b07c3cbbb20e691f2729744 Mon Sep 17 00:00:00 2001 From: burnettk Date: Tue, 30 Jan 2024 13:18:44 -0500 Subject: [PATCH] fix lint --- .../src/components/DataStoreListTiles.tsx | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx b/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx index 47205468e..2f4441510 100644 --- a/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx +++ b/spiffworkflow-frontend/src/components/DataStoreListTiles.tsx @@ -37,20 +37,18 @@ export default function DataStoreListTiles({ ); useEffect(() => { - if (permissionsLoaded) { - if (ability.can('GET', targetUris.dataStoreListPath)) { - if (defaultDataStores) { - setDataStores(defaultDataStores); - } else { - let queryParams = '?per_page=1000'; - if (processGroup) { - queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`; - } - HttpService.makeCallToBackend({ - path: `${targetUris.dataStoreListPath}${queryParams}`, - successCallback: setDataStores, - }); + if (permissionsLoaded && ability.can('GET', targetUris.dataStoreListPath)) { + if (defaultDataStores) { + setDataStores(defaultDataStores); + } else { + let queryParams = '?per_page=1000'; + if (processGroup) { + queryParams = `${queryParams}&process_group_identifier=${processGroup.id}`; } + HttpService.makeCallToBackend({ + path: `${targetUris.dataStoreListPath}${queryParams}`, + successCallback: setDataStores, + }); } } }, [