Skip to content

Commit 8557103

Browse files
Merge branch 'main' into 329-populate-moga-table-with-real-data-add-interactivity
2 parents 0c4983f + 495704f commit 8557103

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

node/src/components/data/JobSelector.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,13 @@ export default function JobsSelector(props: JobSelectorPropsType) {
290290
useEffect(() => {
291291
console.info("useEffect in JobsSelector triggered");
292292
if (selectedFunction === undefined || jobCollections.length > 0) {
293-
return;
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+
})();
294300
}
295301
console.info("Function selected: ", selectedFunction.uid);
296302
(async () => {

0 commit comments

Comments
 (0)