From 64f65dd17f9dea4e0cee17600d2b0daa847bab73 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 27 Mar 2025 00:37:39 -0400 Subject: fixed quoted expressions in schema cells to not evaluate. --- src/client/views/collections/collectionSchema/SchemaTableCell.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx index aeceedc30..dc5dca3c3 100644 --- a/src/client/views/collections/collectionSchema/SchemaTableCell.tsx +++ b/src/client/views/collections/collectionSchema/SchemaTableCell.tsx @@ -175,7 +175,8 @@ export class SchemaTableCell extends ObservableReactComponent { return (strField.startsWith('`') && strField.endsWith('`')) || (strField.startsWith("'") && strField.endsWith("'")) || (strField.startsWith('"') && strField.endsWith('"')); }; - if (!inQuotes(this._submittedValue) && inQuotes(modField)) modField = modField.substring(1, modField.length - 1); + const submittedValue = this._submittedValue.startsWith(eqSymbol) ? this._submittedValue.slice(eqSymbol.length) : this._submittedValue; + if (!inQuotes(submittedValue) && inQuotes(modField)) modField = modField.substring(1, modField.length - 1); return eqSymbol + modField; }; -- cgit v1.2.3-70-g09d2