@oliasoft-open-source/react-ui-library 4.13.0-beta-19 → 4.13.0-beta-20
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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70348,7 +70348,7 @@ const PredefinedOptionsMenu = ({
|
|
|
70348
70348
|
initialPredefinedOption
|
|
70349
70349
|
)
|
|
70350
70350
|
);
|
|
70351
|
-
}, [initialPredefinedOption]);
|
|
70351
|
+
}, [initialPredefinedOption, predefinedOptionLinked]);
|
|
70352
70352
|
useEffect(() => {
|
|
70353
70353
|
if (initialPredefinedOptionObject) {
|
|
70354
70354
|
setPredefinedOptionsMenuState(PredefinedOptionsMenuState.PREDEFINED);
|
|
@@ -70365,7 +70365,7 @@ const PredefinedOptionsMenu = ({
|
|
|
70365
70365
|
initialPredefinedOptionObject == null ? void 0 : initialPredefinedOptionObject.label
|
|
70366
70366
|
]);
|
|
70367
70367
|
useEffect(() => {
|
|
70368
|
-
const foundOption = predefinedOptions.find((option2) => {
|
|
70368
|
+
const foundOption = predefinedOptionLinked && predefinedOptions.find((option2) => {
|
|
70369
70369
|
const convertedValue = convertPredefinedOptions(option2);
|
|
70370
70370
|
return convertedValue === withUnit(displayLayer == null ? void 0 : displayLayer.value, (displayLayer == null ? void 0 : displayLayer.unit) ?? "");
|
|
70371
70371
|
});
|