Immediately refresh patrol findings after org switch

The patrol polling effect did not depend on activeOrgID, so it
continued using the old interval without immediately loading new
org data. With the intelligence state now cleared on org switch,
this caused up to 30s of empty findings until the next poll cycle.
This commit is contained in:
rcourtman 2026-06-27 00:03:48 +01:00
parent eebe0b5f74
commit 3fa0a316e2

View file

@ -482,6 +482,7 @@ export const useAppRuntimeState = () => {
});
createEffect(() => {
activeOrgID();
const ready = !isLoading() && !needsAuth();
if (!ready) return;