fix: prevent empty project override in UI and sync project state on routes

linuztx committed Mar 23, 2026 at 21:34 UTC 8fcb7781594dcdf17dc1a3003a2d35bc32cbc75d
1 file changed +2 -2
plugins/_email_integration/webui/config.html
+2 -2
@@ -249,10 +249,10 @@
249 <div class="field-description">Project to activate for email chats</div>
250 </div>
251 <div class="field-control">
252 - <select x-model="handler.project">
252 + <select :value="handler.project" @change="handler.project = $event.target.value">
253 <option value="">No project</option>
254 <template x-for="proj in projects" :key="proj.name">
255 - <option :value="proj.name" x-text="proj.title || proj.name"></option>
255 + <option :value="proj.name" x-text="proj.title || proj.name" :selected="handler.project === proj.name"></option>
256 </template>
257 </select>
258 </div>