From 52f949e152d629a366726d647a35889951a4bd88 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 21 Oct 2023 18:19:24 -0400 Subject: [PATCH] Revert "Added checkbox for cluster attribute (#810)" This reverts commit 393f4a38b91c194806e4b0ba1721fa043f267488. --- src/components/ModalSources.jsx | 1 - src/components/ModalSourcesTypeEditor.jsx | 39 ++++++++--------------- 2 files changed, 13 insertions(+), 27 deletions(-) diff --git a/src/components/ModalSources.jsx b/src/components/ModalSources.jsx index d6c1e7883..022c47d0e 100644 --- a/src/components/ModalSources.jsx +++ b/src/components/ModalSources.jsx @@ -128,7 +128,6 @@ class AddSource extends React.Component { } case 'geojson_json': return { type: 'geojson', - cluster: source.cluster || false, data: {} } case 'tilejson_vector': return { diff --git a/src/components/ModalSourcesTypeEditor.jsx b/src/components/ModalSourcesTypeEditor.jsx index ba6ebf12d..4b77f4018 100644 --- a/src/components/ModalSourcesTypeEditor.jsx +++ b/src/components/ModalSourcesTypeEditor.jsx @@ -8,7 +8,6 @@ import FieldSelect from './FieldSelect' import FieldDynamicArray from './FieldDynamicArray' import FieldArray from './FieldArray' import FieldJson from './FieldJson' -import FieldCheckbox from './FieldCheckbox' class TileJSONSourceEditor extends React.Component { @@ -81,7 +80,7 @@ class TileURLSourceEditor extends React.Component { })} /> {this.props.children} - + } } @@ -206,35 +205,23 @@ class GeoJSONSourceFieldJsonEditor extends React.Component { } render() { - return
- - { - this.props.onChange({ - ...this.props.source, - data, - }) - }} - /> - - { + return + { this.props.onChange({ ...this.props.source, - cluster: cluster, + data, }) }} /> -
+ } }