diff --git a/frontend/src/toolbar/actions/ActionsListView.tsx b/frontend/src/toolbar/actions/ActionsListView.tsx
index 6054c0bc65241..fb999ed600949 100644
--- a/frontend/src/toolbar/actions/ActionsListView.tsx
+++ b/frontend/src/toolbar/actions/ActionsListView.tsx
@@ -1,7 +1,6 @@
import { Link } from '@posthog/lemon-ui'
import { useActions, useValues } from 'kea'
import { Spinner } from 'lib/lemon-ui/Spinner'
-import { useEffect } from 'react'
import { actionsLogic } from '~/toolbar/actions/actionsLogic'
import { actionsTabLogic } from '~/toolbar/actions/actionsTabLogic'
@@ -13,13 +12,8 @@ interface ActionsListViewProps {
export function ActionsListView({ actions }: ActionsListViewProps): JSX.Element {
const { allActionsLoading, searchTerm } = useValues(actionsLogic)
- const { getActions } = useActions(actionsLogic)
const { selectAction } = useActions(actionsTabLogic)
- useEffect(() => {
- getActions()
- }, [])
-
return (
{actions.length ? (
diff --git a/frontend/src/toolbar/actions/ActionsToolbarMenu.tsx b/frontend/src/toolbar/actions/ActionsToolbarMenu.tsx
index ecbb3800c9260..87ff37b719ee8 100644
--- a/frontend/src/toolbar/actions/ActionsToolbarMenu.tsx
+++ b/frontend/src/toolbar/actions/ActionsToolbarMenu.tsx
@@ -5,6 +5,7 @@ import { LemonButton } from 'lib/lemon-ui/LemonButton'
import { LemonInput } from 'lib/lemon-ui/LemonInput'
import { Link } from 'lib/lemon-ui/Link'
import { Spinner } from 'lib/lemon-ui/Spinner'
+import { useEffect } from 'react'
import { urls } from 'scenes/urls'
import { ActionsEditingToolbarMenu } from '~/toolbar/actions/ActionsEditingToolbarMenu'
@@ -16,13 +17,17 @@ import { toolbarConfigLogic } from '~/toolbar/toolbarConfigLogic'
const ActionsListToolbarMenu = (): JSX.Element => {
const { searchTerm } = useValues(actionsLogic)
- const { setSearchTerm } = useActions(actionsLogic)
+ const { setSearchTerm, getActions } = useActions(actionsLogic)
const { newAction } = useActions(actionsTabLogic)
const { allActions, sortedActions, allActionsLoading } = useValues(actionsLogic)
const { apiURL } = useValues(toolbarConfigLogic)
+ useEffect(() => {
+ getActions()
+ }, [])
+
return (