@stemy/ngx-dynamic-form 13.3.3 → 13.3.5

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.
@@ -293,7 +293,7 @@ function getFormComponent(...types) {
293
293
  return (model, injector) => {
294
294
  const customizers = factory(injector);
295
295
  for (const customizer of customizers) {
296
- const component = customizer.getFormComponent(model);
296
+ const component = customizer.acceptModel(model) ? customizer.getFormComponent(model) : null;
297
297
  if (component) {
298
298
  return component;
299
299
  }
@@ -306,7 +306,7 @@ function customizeFormModel(...types) {
306
306
  return async (property, schema, model, config, injector) => {
307
307
  const customizers = factory(injector);
308
308
  for (const customizer of customizers) {
309
- const accept = await customizer.acceptModel(model, config, property, schema);
309
+ const accept = customizer.acceptModel(model);
310
310
  if (accept) {
311
311
  return customizer.customizeModel(model, config, property, schema);
312
312
  }