Skip to content

Commit cb0613b

Browse files
Update creationForm.tsx to dispatch the different features of each type in distinct layers.
1 parent a7007e8 commit cb0613b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/src/formbuilder/creationform.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class CreationForm extends React.Component<ICreationFormProps, any> {
196196
console.log('layerModel:', layerModel);
197197

198198

199-
if (this.props.layerType === 'VectorLayer' && this.props.sourceType === 'GeoJSONSource') {
199+
if (this.props.layerType === 'VectorLayer' && this.props.sourceType =it == 'GeoJSONSource') {
200200
const data = await this.loadData(this.props?.sourceData?.path)
201201
const features = data.features;
202202

0 commit comments

Comments
 (0)