@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
|
-
|
|
219
|
-
|
|
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] =
|
|
157
|
+
defaultValues[NODE_CLUSTER_FILTER_IDS] = [];
|
|
158
158
|
}
|
|
159
159
|
const powerElectronicsClustersParam = specificParametersDescriptionForProvider.find(
|
|
160
160
|
(specificParam) => specificParam.name === SHORT_CIRCUIT_POWER_ELECTRONICS_CLUSTERS
|