diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-25 20:20:48 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-25 20:20:48 -0400 |
| commit | cb59842fcb79af7ef72443e08c6a479c3f0af343 (patch) | |
| tree | bd36125e161cb374f1bf9d93dd597215db586cb8 /src/fields/Doc.ts | |
| parent | 969ab00c44859b932884bb32fef1b1e8b11d5448 (diff) | |
changed freeformview's with engines to not allow children to be edited using setHeight prop since engine layouts are temporary and shouldn't edit the doc. fixed tags to work with pivot view. cleaned up pile views to be less hacky..
Diffstat (limited to 'src/fields/Doc.ts')
| -rw-r--r-- | src/fields/Doc.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 15df673f3..63af8401c 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -1108,7 +1108,7 @@ export namespace Doc { if (typeof value === "string") { value = value.replace(`,${Utils.noRecursionHack}`, ""); } - const fieldVal = doc[key]; + const fieldVal = key === "#" ? (StrCast(doc.tags).includes(":#" + value + ":") ? StrCast(doc.tags) : undefined) : doc[key]; if (Cast(fieldVal, listSpec("string"), []).length) { const vals = Cast(fieldVal, listSpec("string"), []); const docs = vals.some(v => (v as any) instanceof Doc); |
