From a895b8ba992afec664e5f729e2541b0acf481803 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 24 Apr 2023 11:30:27 +0000 Subject: [PATCH] display a spinner if we're loading/parsing supported infoFormats --- web/client/components/TOC/fragments/settings/FeatureInfo.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/components/TOC/fragments/settings/FeatureInfo.jsx b/web/client/components/TOC/fragments/settings/FeatureInfo.jsx index 93b48b9a6c..1bb5af4314 100644 --- a/web/client/components/TOC/fragments/settings/FeatureInfo.jsx +++ b/web/client/components/TOC/fragments/settings/FeatureInfo.jsx @@ -79,7 +79,7 @@ export default class extends React.Component { render() { // the selected value if missing on that layer should be set to the general info format value and not the first one. const data = this.getInfoFormat(this.supportedInfoFormats()); - return ( + return this.state.loading ? : (