We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c4983f + 495704f commit 8557103Copy full SHA for 8557103
node/src/components/data/JobSelector.tsx
@@ -290,7 +290,13 @@ export default function JobsSelector(props: JobSelectorPropsType) {
290
useEffect(() => {
291
console.info("useEffect in JobsSelector triggered");
292
if (selectedFunction === undefined || jobCollections.length > 0) {
293
- return;
+ } 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
+ })();
300
}
301
console.info("Function selected: ", selectedFunction.uid);
302
(async () => {
0 commit comments