wip: return data in DataLayer.importRaw

This commit is contained in:
Yohan Boniface 2025-04-04 18:45:31 +02:00
parent b342480f3b
commit 91c3b098df

View file

@ -528,8 +528,9 @@ export class DataLayer {
.parse(raw, format)
.then((geojson) => {
this.sync.startBatch()
this.addData(geojson)
const data = this.addData(geojson)
this.sync.commitBatch()
return data
})
.catch((error) => {
console.debug(error)