@antscorp/antsomi-ui 1.3.5-beta.550 → 1.3.5-beta.551

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.
@@ -221,7 +221,10 @@ export const Layout = memo(props => {
221
221
  }), [activeMenu === null || activeMenu === void 0 ? void 0 : activeMenu.menu_item_name, portalId, userId]);
222
222
  // Handle callback processing notification
223
223
  const handleCallbackNotify = useCallback((type, data) => {
224
- var _a;
224
+ // If has callback from props then call it and return
225
+ if (antsProcessingNotificationConfig.callback) {
226
+ return antsProcessingNotificationConfig.callback(type, data);
227
+ }
225
228
  switch (type) {
226
229
  case 'forecast_name': {
227
230
  const cdpDomain = CDP_ROUTE[env || 'development'];
@@ -243,7 +246,6 @@ export const Layout = memo(props => {
243
246
  break;
244
247
  }
245
248
  }
246
- (_a = antsProcessingNotificationConfig.callback) === null || _a === void 0 ? void 0 : _a.call(antsProcessingNotificationConfig, type, data);
247
249
  }, [antsProcessingNotificationConfig, env]);
248
250
  return (React.createElement(LayoutWrapper, { showLeftMenu: !!showLeftMenu },
249
251
  React.createElement(Helmet, null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.550",
3
+ "version": "1.3.5-beta.551",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",