Browse Source

Fix createModelProperty.isApplicable

dsehnal 4 years ago
parent
commit
324820890a
1 changed files with 1 additions and 1 deletions
  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);
             }