Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/odigos-io/odigos
Browse files Browse the repository at this point in the history
  • Loading branch information
BenElferink committed Dec 19, 2024
2 parents 70e0a12 + 28b6138 commit 32f7873
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/webapp/hooks/sources/useSourceFormData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ export const useSourceFormData = (params?: UseSourceFormDataParams): UseSourceFo
} else {
setSelectedSources((prev) => ({ ...prev, [namespace]: bool ? nsAvailableSources : [] }));
setSelectAllForNamespace('');
if (!!nsAvailableSources.length && !namespaceWasSelected.current) setSelectedNamespace('');

// Note: if we want to select all, but not open the expanded view, we can use the following:
// if (!!nsAvailableSources.length && !namespaceWasSelected.current) setSelectedNamespace('');

namespaceWasSelected.current = false;
}
} else {
Expand Down

0 comments on commit 32f7873

Please sign in to comment.