@bigbinary/neeto-themes-frontend 3.1.27 → 3.1.28

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.
@@ -869,7 +869,8 @@ var SwitchBlock = function SwitchBlock(_ref) {
869
869
 
870
870
  var Properties = function Properties(_ref) {
871
871
  var onPropertiesChange = _ref.onPropertiesChange,
872
- condition = _ref.condition;
872
+ condition = _ref.condition,
873
+ themeId = _ref.themeId;
873
874
  var _useConfigStore = useConfigStore(function (store) {
874
875
  return {
875
876
  themePropertiesSchema: store["themePropertiesSchema"]
@@ -928,6 +929,7 @@ var Properties = function Properties(_ref) {
928
929
  }
929
930
  };
930
931
  useEffect(function () {
932
+ if (!((values === null || values === void 0 ? void 0 : values.id) === themeId)) return;
931
933
  onPropertiesChange === null || onPropertiesChange === void 0 || onPropertiesChange(values, handleChange, handleColorChange);
932
934
  setTheme(values);
933
935
  setThemeState({
@@ -1368,7 +1370,8 @@ var Customize = function Customize(_ref) {
1368
1370
  name: "style",
1369
1371
  title: t("neetoThemes.common.style"),
1370
1372
  children: /*#__PURE__*/jsx(Properties, {
1371
- onPropertiesChange: onPropertiesChange
1373
+ onPropertiesChange: onPropertiesChange,
1374
+ themeId: themeId
1372
1375
  })
1373
1376
  }), filterBy({
1374
1377
  kind: "image"