aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/KeyRestrictionRow.tsx
diff options
context:
space:
mode:
authorAndrew Kim <andrewdkim@users.noreply.github.com>2019-08-19 00:27:40 -0400
committerAndrew Kim <andrewdkim@users.noreply.github.com>2019-08-19 00:27:40 -0400
commita4bfacd9f494df6698d12d408d736e878c1189eb (patch)
treeb3af89bc30eaf48fd983711c00cd4c28eb662bbc /src/client/views/collections/KeyRestrictionRow.tsx
parent1b7e8873ead3cc15349bd4c9e669f3b1edcbbc2b (diff)
parentb037aa89fb564812f880994453ce002054a0ad82 (diff)
merge from master
Diffstat (limited to 'src/client/views/collections/KeyRestrictionRow.tsx')
-rw-r--r--src/client/views/collections/KeyRestrictionRow.tsx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/collections/KeyRestrictionRow.tsx b/src/client/views/collections/KeyRestrictionRow.tsx
index 1b59547d8..e35b7d7d3 100644
--- a/src/client/views/collections/KeyRestrictionRow.tsx
+++ b/src/client/views/collections/KeyRestrictionRow.tsx
@@ -7,12 +7,14 @@ import { Doc } from "../../../new_fields/Doc";
interface IKeyRestrictionProps {
contains: boolean;
script: (value: string) => void;
+ field: string;
+ value: string;
}
@observer
export default class KeyRestrictionRow extends React.Component<IKeyRestrictionProps> {
- @observable private _key = "";
- @observable private _value = "";
+ @observable private _key = this.props.field;
+ @observable private _value = this.props.value;
@observable private _contains = this.props.contains;
render() {