Browse Source

fix superpose theme interface

Yana Rose 4 years ago
parent
commit
0c45ff7d11
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/viewer/helpers/superpose/color.ts

+ 1 - 1
src/viewer/helpers/superpose/color.ts

@@ -52,5 +52,5 @@ export const SuperposeColorThemeProvider: ColorTheme.Provider<{}, 'superpose'> =
     factory: SuperposeColorTheme,
     getParams: () => ({}),
     defaultValues: PD.getDefaultValues({}),
-    isApplicable: (ctx: ThemeDataContext) => !!ctx.structure && !!ctx.structure.inheritedPropertyData.subset,
+    isApplicable: (ctx: ThemeDataContext) => !!ctx.structure && !!ctx.structure.inheritedPropertyData.colors,
 };