mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-29 19:25:50 +00:00
fix lint
This commit is contained in:
parent
b4f85925d6
commit
4cb1f33ac9
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
}, [
|
||||
|
Loading…
x
Reference in New Issue
Block a user