From 42ac7f6ad3acc6b2f47565c91fc838e8bed55777 Mon Sep 17 00:00:00 2001 From: Benjamin Marguin Date: Fri, 17 Nov 2023 16:41:53 +0100 Subject: [PATCH] Avoid delay in LinearProgress display (when adding layer to a group) --- src/modules/RA/Scene/components/GeolayerSelect.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/RA/Scene/components/GeolayerSelect.js b/src/modules/RA/Scene/components/GeolayerSelect.js index ff09e71f1..2cd9f912d 100644 --- a/src/modules/RA/Scene/components/GeolayerSelect.js +++ b/src/modules/RA/Scene/components/GeolayerSelect.js @@ -5,6 +5,7 @@ import { LinearProgress, withDataProvider, GET_LIST } from 'react-admin'; import debounce from 'lodash.debounce'; import uniqBy from 'lodash.uniqby'; +import Box from '@material-ui/core/Box'; import FormControl from '@material-ui/core/FormControl'; import InputLabel from '@material-ui/core/InputLabel'; import MenuItem from '@material-ui/core/MenuItem'; @@ -120,7 +121,11 @@ const GeolayerSelect = ({ dataProvider, onChange, excludeIds = [], includeIds = * Display progress bar until we have geolayers */ if (!geolayers) { - return ; + return ( + + + + ); } if (!geolayers.length) {