File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ export function getBookmarksQueryOptions(
5353 } ,
5454 {
5555 query : {
56- enabled : hasUser && ! ! projectId ,
56+ enabled : Boolean ( hasUser && ! ! projectId ) ,
5757 } ,
5858 } ,
5959 ) ;
Original file line number Diff line number Diff line change 181181 });
182182 $ : exploreSpec = $exploreQuery .data ?.explore ?.explore ?.state ?.validSpec ;
183183 $ : isDashboardValid = !! exploreSpec ;
184+ $ : hasUserAccess = $user .isSuccess && $user .data .user && ! onPublicURLPage ;
184185
185186 $ : publicURLDashboardTitle =
186187 $exploreQuery .data ?.explore ?.explore ?.state ?.validSpec ?.displayName ||
242243 {#if $dashboardChat }
243244 <ChatToggle />
244245 {/if }
245- {#if $user . isSuccess && $user . data . user && ! onPublicURLPage }
246+ {#if hasUserAccess }
246247 <ExploreBookmarks
247248 {organization }
248249 {project }
259260 {/if }
260261 {/if }
261262
262- {#if onCanvasDashboardPage }
263+ {#if onCanvasDashboardPage && hasUserAccess }
263264 <CanvasBookmarks {organization } {project } canvasName ={dashboard } />
264265 <ShareDashboardPopover createMagicAuthTokens ={false } />
265266 {/if }
You can’t perform that action at this time.
0 commit comments