aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authoranika-ahluwalia <anika.ahluwalia@gmail.com>2020-09-02 15:04:44 -0500
committeranika-ahluwalia <anika.ahluwalia@gmail.com>2020-09-02 15:04:44 -0500
commitcb28e0cc898b0f7f880a23501bc1510df3c1c3fc (patch)
tree885caa3652e04a1dc9825c49822cb7a0c73c82fe /src/client/views/PropertiesView.tsx
parent831e634e9a541eca34da163d879c80b97292204d (diff)
parenta7975e6f18b0d837403ced65ee5979b60b43f5bc (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into anika_bug_fixes
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 67c26c392..bb4657a2b 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -243,10 +243,10 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
return true;
} else if (value[0] === "#") {
const newVal = value + `:'${value}'`;
- KeyValueBox.SetField(doc, value, `'${value}'`, true);
+ doc[DataSym][value] = value;
const tags = StrCast(doc.tags, ":");
- if (!tags.includes(`#${value}:`)) {
- KeyValueBox.SetField(doc, "tags", `"${tags + value + ':'}"`, true);
+ if (!tags.includes(`${value}:`)) {
+ doc[DataSym].tags = `${tags + value + ':'}`;
}
return true;
}