@gridsuite/commons-ui 0.173.0 → 0.174.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -210,13 +210,15 @@ const useLoadFlowParametersForm = (parametersBackend, isDeveloperMode, parameter
210
210
  return;
211
211
  }
212
212
  resetForm(params);
213
- }, [paramsLoaded, params]);
213
+ }, [paramsLoaded, params, specificParamsDescription]);
214
214
  useEffect(() => {
215
215
  if (!watchProvider || watchProvider === previousWatchProviderRef.current) {
216
216
  return;
217
217
  }
218
- setSpecificParameters(watchProvider, specificParamsDescription, formMethods);
219
- setLimitReductions(watchProvider, defaultLimitReductions, formMethods);
218
+ if (previousWatchProviderRef.current) {
219
+ setSpecificParameters(watchProvider, specificParamsDescription, formMethods);
220
+ setLimitReductions(watchProvider, defaultLimitReductions, formMethods);
221
+ }
220
222
  if (watchProvider === PARAM_PROVIDER_OPENLOADFLOW) {
221
223
  if (previousWatchProviderRef.current) {
222
224
  setLimitReductionNumber(defaultLimitReductions?.at(0)?.temporaryLimitReductions?.length ?? 0);
@@ -154,7 +154,7 @@ const getDefaultShortCircuitSpecificParamsValues = (specificParametersDescriptio
154
154
  (specificParam) => specificParam.name === NODE_CLUSTER
155
155
  );
156
156
  if (nodeClusterParam) {
157
- defaultValues[NODE_CLUSTER_FILTER_IDS] = nodeClusterParam.defaultValue;
157
+ defaultValues[NODE_CLUSTER_FILTER_IDS] = [];
158
158
  }
159
159
  const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
160
160
  (specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.173.0",
3
+ "version": "0.174.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "author": "gridsuite team",
6
6
  "homepage": "https://github.com/gridsuite",