Skip to content

Commit

Permalink
Ensure object stores are loaded first
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Jul 10, 2024
1 parent 435762f commit 0404a17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const router = useRouter();
const objectStoresBySizeData = ref<DataValuePoint[] | null>(null);
const { isLoading, loadDataOnMount } = useDataLoading();
const { getObjectStoreNameById } = useObjectStoreStore();
const { isLoading, loadDataOnMount } = useDataLoading();
loadDataOnMount(async () => {
const { data } = await fetchObjectStoreUsages({ user_id: "current" });
const objectStoresBySize = data.sort((a, b) => b.total_disk_usage - a.total_disk_usage);
Expand Down

0 comments on commit 0404a17

Please sign in to comment.