fix: allow overriding inherited space abbreviations at room level

This commit is contained in:
Evie Gauthier committed 2026-03-24 23:33:29 -04:00
1 parent 0767c18a17
commit 4207f82aa6
1 file changed
+1 -3
@@ -117,9 +117,7 @@ export function RoomAbbreviations({ requestClose, isSpace }: AbbreviationsProps)
const definition = definitionInput.value.trim();
if (!term || !definition) return;
const alreadyExists =
entries.some((e) => e.term.toLowerCase() === term.toLowerCase()) ||
allAncestorEntries.some((e) => e.term.toLowerCase() === term.toLowerCase());
const alreadyExists = entries.some((e) => e.term.toLowerCase() === term.toLowerCase());
if (alreadyExists) {
termInput.setCustomValidity('This term already exists.');
termInput.reportValidity();