ordering-ui-admin-external 1.45.5 → 1.45.7
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/_bundles/{ordering-ui-admin.3b2a0da4d30a25c216d1.js → ordering-ui-admin.a8f3f4b2ef54f4175b90.js} +2 -2
- package/_modules/components/Stores/ProductDetailsAdvanced/index.js +1 -1
- package/package.json +2 -2
- package/src/components/Stores/ProductDetailsAdvanced/index.js +1 -1
- /package/_bundles/{ordering-ui-admin.3b2a0da4d30a25c216d1.js.LICENSE.txt → ordering-ui-admin.a8f3f4b2ef54f4175b90.js.LICENSE.txt} +0 -0
|
@@ -315,7 +315,7 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
315
315
|
}, [productState === null || productState === void 0 ? void 0 : productState.weight]);
|
|
316
316
|
(0, _react.useEffect)(function () {
|
|
317
317
|
var _formState$changes8, _formState$changes9;
|
|
318
|
-
if (formState !== null && formState !== void 0 && (_formState$changes8 = formState.changes) !== null && _formState$changes8 !== void 0 && _formState$changes8.weight && !(formState !== null && formState !== void 0 && (_formState$changes9 = formState.changes) !== null && _formState$changes9 !== void 0 && _formState$changes9.weight_unit)) {
|
|
318
|
+
if (formState !== null && formState !== void 0 && (_formState$changes8 = formState.changes) !== null && _formState$changes8 !== void 0 && _formState$changes8.weight && !(productState !== null && productState !== void 0 && productState.weight_unit) && !(formState !== null && formState !== void 0 && (_formState$changes9 = formState.changes) !== null && _formState$changes9 !== void 0 && _formState$changes9.weight_unit)) {
|
|
319
319
|
handleClickProperty('weight_unit', 'grams');
|
|
320
320
|
}
|
|
321
321
|
}, [formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.weight]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ordering-ui-admin-external",
|
|
3
|
-
"version": "1.45.
|
|
3
|
+
"version": "1.45.07",
|
|
4
4
|
"description": "Ordering UI Admin Components",
|
|
5
5
|
"main": "./_modules/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"lodash": "^4.17.20",
|
|
84
84
|
"moment": "^2.29.1",
|
|
85
85
|
"moment-range": "^4.0.2",
|
|
86
|
-
"ordering-components-admin-external": "1.43.
|
|
86
|
+
"ordering-components-admin-external": "1.43.64",
|
|
87
87
|
"polished": "^3.6.7",
|
|
88
88
|
"prop-types": "^15.7.2",
|
|
89
89
|
"react-big-calendar": "^1.4.2",
|
|
@@ -279,7 +279,7 @@ const ProductDetailsAdvancedUI = (props) => {
|
|
|
279
279
|
}, [productState?.weight])
|
|
280
280
|
|
|
281
281
|
useEffect(() => {
|
|
282
|
-
if (formState?.changes?.weight && !(formState?.changes?.weight_unit)) {
|
|
282
|
+
if (formState?.changes?.weight && !productState?.weight_unit && !(formState?.changes?.weight_unit)) {
|
|
283
283
|
handleClickProperty('weight_unit', 'grams')
|
|
284
284
|
}
|
|
285
285
|
}, [formState?.changes?.weight])
|