@sitecore-feaas/clientside 0.1.55 → 0.1.56

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.
@@ -15,7 +15,7 @@ const convertSchemaPropertiesToKebabCase = (schema: any) => {
15
15
  return acc
16
16
  }, {})
17
17
 
18
- kebabRequiredProperties = schema.required.map((item: string) => kebabCase(item))
18
+ kebabRequiredProperties = (schema.required || []).map((item: string) => kebabCase(item))
19
19
  }
20
20
  return { ...schema, properties: kebabSchemaProperties, required: kebabRequiredProperties }
21
21
  }
@@ -82,9 +82,9 @@ export default class FEAASExternal extends FEAASBase<FEAASExternalProps, ReactMo
82
82
  }
83
83
 
84
84
  static setRegistrationCallback() {
85
- // if registerCallback has not already been triggered by another component, set it
86
- if (!FEAASExternal.registrationCallback && typeof window !== 'undefined') {
87
- FEAASExternal.registrationCallback = setTimeout(() => {
85
+ clearTimeout(FEAASExternal.registrationCallback)
86
+ FEAASExternal.registrationCallback = setTimeout(() => {
87
+ if (typeof window !== 'undefined') {
88
88
  // create components array from object
89
89
  const components = Object.keys(FEAASExternal.registered).map((id) => ({
90
90
  ...FEAASExternal.registered[id],
@@ -101,8 +101,8 @@ export default class FEAASExternal extends FEAASBase<FEAASExternalProps, ReactMo
101
101
  }),
102
102
  '*'
103
103
  )
104
- }, 500)
105
- }
104
+ }
105
+ }, 30)
106
106
  }
107
107
 
108
108
  /*static loadComponents() {