Skip to content

Commit 3403696

Browse files
committed
console: Update tutorial variable to tutorialSeen
1 parent 213cd70 commit 3403696

File tree

1 file changed

+4
-4
lines changed
  • pkg/webui/console/containers/event-split-frame

1 file changed

+4
-4
lines changed

pkg/webui/console/containers/event-split-frame/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ const EventSplitFrameInner = ({ children }) => {
4646
const userId = useSelector(selectUserId)
4747
const user = useSelector(state => selectUserById(state, userId))
4848
const consolePreferences = useSelector(state => selectConsolePreferences(state))
49-
const tutorials = consolePreferences.tutorials?.seen || []
50-
const seen = tutorials.includes('TUTORIAL_LIVE_DATA_SPLIT_VIEW')
49+
const tutorialsSeen = consolePreferences.tutorials?.seen || []
50+
const seen = tutorialsSeen.includes('TUTORIAL_LIVE_DATA_SPLIT_VIEW')
5151

5252
useEffect(() => {
5353
setIsMounted(true)
@@ -58,13 +58,13 @@ const EventSplitFrameInner = ({ children }) => {
5858
const patch = {
5959
console_preferences: {
6060
tutorials: {
61-
seen: [...tutorials, 'TUTORIAL_LIVE_DATA_SPLIT_VIEW'],
61+
seen: [...tutorialsSeen, 'TUTORIAL_LIVE_DATA_SPLIT_VIEW'],
6262
},
6363
},
6464
}
6565

6666
await dispatch(attachPromise(updateUser({ id: user.ids.user_id, patch })))
67-
}, [dispatch, tutorials, user.ids.user_id])
67+
}, [dispatch, tutorialsSeen, user.ids.user_id])
6868

6969
// Handle the dragging of the handler to resize the frame.
7070
const handleDragStart = useCallback(

0 commit comments

Comments
 (0)