Skip to content

Commit

Permalink
fix: setFullScreen(isStartingInitialLoad)
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Oct 10, 2023
1 parent a07c453 commit 32e508a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/components/DataLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function useDataLoader(options = { refreshOnMount: false }) {
*/
async function loadOrRefreshData(isStartingInitialLoad) {
setIsLoading(true);
setFullScreen(isStartingInitialLoad ? true : false);
setFullScreen(isStartingInitialLoad);
setLoadingText(isStartingInitialLoad ? 'Chargement des données' : 'Mise à jour des données');

/*
Expand Down

0 comments on commit 32e508a

Please sign in to comment.