Explorar o código

Fix createModelProperty.isApplicable

dsehnal %!s(int64=4) %!d(string=hai) anos
pai
achega
324820890a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-model-props/common/custom-element-property.ts

+ 1 - 1
src/mol-model-props/common/custom-element-property.ts

@@ -61,7 +61,7 @@ namespace CustomElementProperty {
             type: builder.type || 'dynamic',
             defaultParams: {},
             getParams: (data: Model) => ({}),
-            isApplicable: (data: Model) => !!builder.isApplicable?.(data),
+            isApplicable: (data: Model) => !builder.isApplicable || !!builder.isApplicable(data),
             obtain: async (ctx: CustomProperty.Context, data: Model) => {
                 return await builder.getData(data, ctx);
             }