impaktapps-ui-builder 1.0.117 → 1.0.119

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.117",
3
+ "version": "1.0.119",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -261,25 +261,16 @@ export default (funcParams: funcParamsProps) => {
261
261
  callHandler: function (eventType: string, functionParameters?: any) {
262
262
  const path = funcParams.dynamicData?.tableButtonPath || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
263
263
  if (eventGroups?.[eventType]?.[path] !== undefined) {
264
- (eventGroups?.[eventType]?.[path].map((eventConfig) => {
264
+ (eventGroups?.[eventType]?.[path].map(async (eventConfig) => {
265
265
  executeEventsParameters.store.functionParameters = functionParameters
266
- if (eventConfig.Handler === "refresh") {
267
- executeEvents({
268
- ...executeEventsParameters,
269
- config: eventConfig,
270
- componentName: path,
271
- formDataHolder: formDataHolder
272
- }).then((res) => {
273
- if (!isEmpty(formDataHolder)) {
274
- funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
275
- }
276
- });
277
- } else {
278
- executeEvents({
279
- ...executeEventsParameters,
280
- config: eventConfig,
281
- componentName: path
282
- })
266
+ await executeEvents({
267
+ ...executeEventsParameters,
268
+ config: eventConfig,
269
+ componentName: path,
270
+ formDataHolder: formDataHolder
271
+ })
272
+ if (!isEmpty(formDataHolder)) {
273
+ funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
283
274
  }
284
275
  }))
285
276
  }