Explorar o código

fix superpose theme interface

Yana Rose %!s(int64=4) %!d(string=hai) anos
pai
achega
0c45ff7d11
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
 };