fix: x-data wsInit() was never called — used inline x-data without init
FlowDeck CI / test (push) Failing after 4s
FlowDeck CI / docker (push) Has been skipped

The template had x-data="{inline object}" with x-init="init()" but the
inline object had no init method. wsInit() function was defined but
never referenced. Changed x-data to wsInit() which returns the full
component with init() — Alpine auto-calls init() on mount.
This commit is contained in:
2026-07-10 21:49:50 -04:00
parent 1e0afb0e69
commit 46e7c1d815
+1 -3
View File
@@ -55,9 +55,7 @@
.delete-confirm{padding:12px;background:rgba(255,80,80,.08);border-radius:8px;margin-top:12px;font-size:13px;color:var(--text-secondary);}
</style>
<div class="ws-layout"
x-data="{tree:[],loaded:false,showCreate:false,showRename:false,showDelete:false,createType:'file',newName:'',parentFolder:null,target:null}"
x-init="init()">
<div class="ws-layout" x-data="wsInit()">
<div class="ws-header">
<h1>📁 {{ workspace_name }}</h1>