aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/KeyRestrictionRow.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2019-08-15 23:45:04 -0400
committerGitHub <noreply@github.com>2019-08-15 23:45:04 -0400
commit1bf46d87047af8c543830325c59a79f15364e901 (patch)
tree686acda013f091dfd238ffc51bf1ebe364c17692 /src/client/views/collections/KeyRestrictionRow.tsx
parente0986156ac3fa92d57f3fbe9bc5e36e413764357 (diff)
parent797ed4ee343a52738e8619cf336e5f94f64c69c4 (diff)
Merge pull request #255 from browngraphicslab/web_chrome
Web chrome
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() {