From f806e797faa83048e35efdb5e4270b05e4c737e3 Mon Sep 17 00:00:00 2001 From: Lukas Martinelli Date: Mon, 9 Jan 2017 23:02:17 +0100 Subject: [PATCH] Fix non existing value warning --- src/components/fields/SpecField.jsx | 1 + src/components/filter/FilterEditor.jsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/fields/SpecField.jsx b/src/components/fields/SpecField.jsx index 4057579..cfede69 100644 --- a/src/components/fields/SpecField.jsx +++ b/src/components/fields/SpecField.jsx @@ -70,6 +70,7 @@ export default class SpecField extends React.Component { if(options.length <= 3 && optionsLabelLength(options) <= 20) { return } else { diff --git a/src/components/filter/FilterEditor.jsx b/src/components/filter/FilterEditor.jsx index ea40193..6f7f0cc 100644 --- a/src/components/filter/FilterEditor.jsx +++ b/src/components/filter/FilterEditor.jsx @@ -30,7 +30,7 @@ function hasNestedCombiningFilter(filter) { export default class CombiningFilterEditor extends React.Component { static propTypes = { /** Properties of the vector layer and the available fields */ - properties: React.PropTypes.object.isRequired, + properties: React.PropTypes.object, filter: React.PropTypes.array, onChange: React.PropTypes.func.isRequired, }