Skip to content

Commit

Permalink
update useSystems
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Jan 26, 2024
1 parent 0e3ac61 commit 5bcb151
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react/src/hooks/systems/useSystems.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { UseQueryResult } from 'react-query';
import { System } from '../../types';
import { ApiService, System } from '../../types';
import { useGet } from '../../requests';

const useSystems = (): UseQueryResult<System[]> => {
const query = useGet<{ result: System[] }>({
endpoint: '/systems/v2?type=STORAGE',
key: ['systemsv2'],
baseUrl: 'https://agave.designsafe-ci.org//',
apiService: ApiService.DesignSafe,
});

const systems = query.data?.result || [];
Expand Down

0 comments on commit 5bcb151

Please sign in to comment.