Explorar o código

fix: favorite status/button not updated in page menu

Gabriel Horner %!s(int64=2) %!d(string=hai) anos
pai
achega
aeef441de1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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")
           contents? (= page-name "contents")
           properties (:block/properties page)
           properties (:block/properties page)
           public? (true? (pu/lookup properties :public))
           public? (true? (pu/lookup properties :public))
+          _favorites-updated? (state/sub :favorites/updated?)
           favorited? (page-handler/favorited? page-name)
           favorited? (page-handler/favorited? page-name)
           developer-mode? (state/sub [:ui/developer-mode?])
           developer-mode? (state/sub [:ui/developer-mode?])
           file-rpath (when (util/electron?) (page-util/get-page-file-rpath page-name))
           file-rpath (when (util/electron?) (page-util/get-page-file-rpath page-name))