Ver Fonte

fix: favorite status/button not updated in page menu

Gabriel Horner há 2 anos atrás
pai
commit
aeef441de1
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      src/main/frontend/components/page_menu.cljs

+ 1 - 0
src/main/frontend/components/page_menu.cljs

@@ -71,6 +71,7 @@
           contents? (= page-name "contents")
           properties (:block/properties page)
           public? (true? (pu/lookup properties :public))
+          _favorites-updated? (state/sub :favorites/updated?)
           favorited? (page-handler/favorited? page-name)
           developer-mode? (state/sub [:ui/developer-mode?])
           file-rpath (when (util/electron?) (page-util/get-page-file-rpath page-name))