Skip to content

Commit

Permalink
fix: show page menu for untitled whiteboard
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored and tiensonqin committed Nov 14, 2022
1 parent e00ef97 commit dbdf645
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/frontend/components/page_menu.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
repo (state/sub :git/current-repo)
page (db/entity repo [:block/name page-name])
page-original-name (:block/original-name page)
block? (and page (util/uuid-string? page-name))
whiteboard? (= "whiteboard" (:block/type page))
block? (and page (util/uuid-string? page-name) (not whiteboard?))
contents? (= page-name "contents")
properties (:block/properties page)
public? (true? (:public properties))
Expand Down

0 comments on commit dbdf645

Please sign in to comment.