File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/base/src/dialogs Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ const ProcessingFormWrapper: React.FC<IProcessingFormWrapperProps> = props => {
4545 props . formErrorSignalPromise ?. promise ,
4646 ] ) . then ( ( [ ok , formChanged ] ) => {
4747 okSignal . current = ok ;
48- formErrorSignal . current = formChanged ;
48+ formErrorSignal . current = formChanged || undefined ;
4949 setReady ( true ) ;
5050 } ) ;
5151
52- let FormComponent ;
52+ let FormComponent : React . ComponentType < any > ;
5353 switch ( props . processingType ) {
5454 case 'Dissolve' :
5555 FormComponent = DissolveForm ;
@@ -65,7 +65,6 @@ const ProcessingFormWrapper: React.FC<IProcessingFormWrapperProps> = props => {
6565 filePath = { props . model . filePath }
6666 model = { props . model }
6767 ok = { okSignal . current }
68- cancel = { props . cancel }
6968 sourceData = { props . sourceData }
7069 schema = { props . schema }
7170 syncData = { props . syncData }
@@ -183,5 +182,5 @@ export class ProcessingFormDialog extends Dialog<IDict> {
183182 }
184183 }
185184
186- private okSignal : Signal < Dialog < any > , number > ;
185+ private okSignal : Signal < Dialog < IDict > , number > ;
187186}
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ const SymbologyDialog: React.FC<ISymbologyDialogProps> = ({
4646 cancel,
4747} ) => {
4848 const [ selectedLayer , setSelectedLayer ] = useState < string | null > ( null ) ;
49- const [ componentToRender , setComponentToRender ] = useState < any > ( null ) ;
49+ const [ componentToRender , setComponentToRender ] =
50+ useState < JSX . Element | null > ( null ) ;
5051
5152 let LayerSymbology : React . JSX . Element ;
5253
You can’t perform that action at this time.
0 commit comments