diff --git a/pkg/webui/console/containers/event-split-frame/index.js b/pkg/webui/console/containers/event-split-frame/index.js index 6c9c688ca8..50db5c4676 100644 --- a/pkg/webui/console/containers/event-split-frame/index.js +++ b/pkg/webui/console/containers/event-split-frame/index.js @@ -46,8 +46,8 @@ const EventSplitFrameInner = ({ children }) => { const userId = useSelector(selectUserId) const user = useSelector(state => selectUserById(state, userId)) const consolePreferences = useSelector(state => selectConsolePreferences(state)) - const tutorials = consolePreferences.tutorials?.seen || [] - const seen = tutorials.includes('TUTORIAL_LIVE_DATA_SPLIT_VIEW') + const tutorialsSeen = consolePreferences.tutorials?.seen || [] + const seen = tutorialsSeen.includes('TUTORIAL_LIVE_DATA_SPLIT_VIEW') useEffect(() => { setIsMounted(true) @@ -58,13 +58,13 @@ const EventSplitFrameInner = ({ children }) => { const patch = { console_preferences: { tutorials: { - seen: [...tutorials, 'TUTORIAL_LIVE_DATA_SPLIT_VIEW'], + seen: [...tutorialsSeen, 'TUTORIAL_LIVE_DATA_SPLIT_VIEW'], }, }, } await dispatch(attachPromise(updateUser({ id: user.ids.user_id, patch }))) - }, [dispatch, tutorials, user.ids.user_id]) + }, [dispatch, tutorialsSeen, user.ids.user_id]) // Handle the dragging of the handler to resize the frame. const handleDragStart = useCallback(