Skip to content

Commit

Permalink
fix(persons): fix persons modal key (#19417)
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr authored Dec 20, 2023
1 parent 296554f commit 597f354
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { lemonToast } from '@posthog/lemon-ui'
import { actions, afterMount, connect, kea, listeners, path, props, reducers, selectors } from 'kea'
import { actions, afterMount, connect, kea, listeners, path, props, propsChanged, reducers, selectors } from 'kea'
import { loaders } from 'kea-loaders'
import { router, urlToAction } from 'kea-router'
import api from 'lib/api'
Expand Down Expand Up @@ -310,4 +310,10 @@ export const personsModalLogic = kea<personsModalLogicType>([
}
},
})),

propsChanged(({ props, actions }, oldProps) => {
if (props.url !== oldProps.url) {
actions.loadActors({ query: props.query, url: props.url, clear: true })
}
}),
])

0 comments on commit 597f354

Please sign in to comment.