plmt-constructor-sdk 0.13.6 → 0.13.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.
@@ -100,7 +100,9 @@ exports.provideDataTo = provideDataTo;
100
100
  function getDataSettingsEvents(widget, key) {
101
101
  const dataSettings = key === widget_1.widgetDefaultKey
102
102
  ? widget.dataSettings
103
- : widget.dataSettings[key];
103
+ : widget.dataSettings?.hasOwnProperty(key)
104
+ ? widget.dataSettings[key]
105
+ : widget.dataSettings;
104
106
  if (dataSettings)
105
107
  return {
106
108
  events: dataSettings.events,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plmt-constructor-sdk",
3
- "version": "0.13.6",
3
+ "version": "0.13.7",
4
4
  "description": "Набор инструментов для создания виджетов.",
5
5
  "dependencies": {
6
6
  "logical-not": "^1.0.9"