fix: add missing closing brace for toggleFavorite() method
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

The toggleFavorite() function body was missing its closing },
causing togglePublish(){...} to be parsed inside toggleFavorite()
body. The { at togglePublish() column was the 'Unexpected token {'
SyntaxError that prevented ALL JavaScript from executing.

Root cause of ALL Alpine 'is not defined' errors since the refactor.
This commit is contained in:
2026-07-10 14:17:25 -04:00
parent f87aaa7ead
commit 806ec495f0
+1
View File
@@ -376,6 +376,7 @@ function editorState(){
const m=this.favorited?'DELETE':'POST';
fetch(`/board/api/favorites/${this.pid}`,{method:m,headers:{'X-CSRF-Token':csrf?csrf[1]:''}})
.then(r=>r.json()).then(()=>{this.favorited=!this.favorited;}).catch(()=>{});
},
togglePublish(){this.pagePublished=!this.pagePublished;this.saveShare();},
saveShare(){
const csrf=document.cookie.match(/csrf_token=([^;]+)/);