Skip to content

Commit

Permalink
fix resource issue
Browse files Browse the repository at this point in the history
  • Loading branch information
RNR1 committed Jun 22, 2024
1 parent 039f0a5 commit da6be59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export const getResources = createAsyncThunk(
const database = getDatabase(app);

if (process.env.REACT_APP_CYPRESS_TEST) return testData;
const results = (await get(ref(database, '/'))).exportVal();
const snapshot = await get(ref(database, '/'));
const results = snapshot.val();
return Object.values(results) || [];
}
);
Expand Down

0 comments on commit da6be59

Please sign in to comment.