fix: disable onboarding on demo graph

pull/8455/head
Konstantinos Kaloutas 2023-01-24 19:09:56 +02:00 committed by Andelf
parent 5487ca675f
commit 07e62c81bb
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
use-click-outside]]
[frontend.state :as state]
[frontend.storage :as storage]
[frontend.config :as config]
[frontend.ui :as ui]
[frontend.util :as util]
[promesa.core :as p]
@ -300,6 +301,7 @@
[]
(when (and (user-handler/feature-available? :whiteboard)
(not (or (state/sub :whiteboard/onboarding-tour?)
(config/demo-graph?)
(util/mobile?))))
(state/pub-event! [:whiteboard/onboarding])
(state/set-state! [:whiteboard/onboarding-tour?] true)