File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -289,15 +289,16 @@ export default function JobsSelector(props: JobSelectorPropsType) {
289289
290290 useEffect ( ( ) => {
291291 console . info ( "useEffect in JobsSelector triggered" ) ;
292- if ( selectedFunction === undefined || jobCollections . length > 0 ) {
293- } else {
294- console . info ( "Function selected: " , selectedFunction . uid ) ;
295- ( async ( ) => {
296- setJobCollections ( [ ] ) ;
297- await updateJobCollections ( selectedFunction ?. uid as string ) ;
298- console . info ( "Updated JobCollections" ) ;
299- } ) ( ) ;
292+ if ( selectedFunction === undefined || jobCollections . length === 0 ) {
293+ return ;
300294 }
295+ console . info ( "Function selected: " , selectedFunction . uid ) ;
296+ ( async ( ) => {
297+ setJobCollections ( [ ] ) ;
298+ await updateJobCollections ( selectedFunction ?. uid as string ) ;
299+ console . info ( "Updated JobCollections" ) ;
300+ } ) ( ) ;
301+
301302 console . info ( "Function selected: " , selectedFunction . uid ) ;
302303 ( async ( ) => {
303304 setJobCollections ( [ ] ) ;
You can’t perform that action at this time.
0 commit comments