fix editor

This commit is contained in:
Your Name 2026-08-22 11:29:04 -04:00
parent 3a7031e462
commit f6bde50ce3
6 changed files with 305 additions and 50 deletions

View file

@ -32,9 +32,9 @@ if (!structure) {
const structureId = String(structure.id);
bliss("update-settings", structureId, "--route-prefix", "/_bliss");
let state = json("structure", structureId);
if (!state.dbs.some((db) => String(db.id) === "0" && db.alias === "bliss")) {
bliss("attach-db", structureId, "0", "bliss");
}
// No db is attached: the editor reads structure sources through the /plumbing
// API (owner-checked), not by mounting the prime db — which is no longer
// attachable to other structures anyway.
const templates = [
["inspector/slideout", "slideout.eta"],