File tree 1 file changed +7
-7
lines changed
weave-js/src/components/Panel2
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,13 @@ const PanelImageConfig: FC<PanelImageProps> = ({
79
79
updateConfig,
80
80
input,
81
81
} ) => {
82
- const classLabels = useClassLabels ( input ) ;
82
+ const weave = useWeaveContext ( ) ;
83
+
84
+ const exemplarsNode = useMemo ( ( ) => {
85
+ return replaceInputVariables ( input , weave . client . opStore ) ;
86
+ } , [ input , weave . client . opStore ] ) ;
87
+
88
+ const classLabels = useClassLabels ( exemplarsNode as Node < typeof inputType > ) ;
83
89
84
90
const { classSets, controls} = Controls . useImageControls (
85
91
input . type ,
@@ -97,12 +103,6 @@ const PanelImageConfig: FC<PanelImageProps> = ({
97
103
}
98
104
} , [ config , controls ] ) ;
99
105
100
- const weave = useWeaveContext ( ) ;
101
-
102
- const exemplarsNode = useMemo ( ( ) => {
103
- return replaceInputVariables ( input , weave . client . opStore ) ;
104
- } , [ input , weave . client . opStore ] ) ;
105
-
106
106
const exemplars = CGReact . useNodeValue ( exemplarsNode ) . result ;
107
107
const boxes = useMemo ( ( ) => {
108
108
if ( exemplars == null ) {
You can’t perform that action at this time.
0 commit comments