Skip to content

Commit 75a1686

Browse files
committed
fix: method return state
1 parent 1674d2d commit 75a1686

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vendors/helpers/Layers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,15 @@ export function readFeatures(map, name) {
185185
//Check if there is a undo stack connected to this source, if so clear and disable
186186
return new GeoJSON().writeFeaturesObject(source.getFeatures())
187187
}
188+
return false
188189
}
189190

190191
//Clear feature of map
191192
export function clearFeatures(map, name) {
192193
const layer = findLayer(map, name);
193194
if (layer) {
194195
layer.getSource().clear()
196+
return true
195197
}
198+
return false
196199
}

0 commit comments

Comments
 (0)