Skip to content

Commit

Permalink
fix(featureloader) bad manage success (#1023)
Browse files Browse the repository at this point in the history
Co-authored-by: hbernard <Hugues.Bernard@transports.gouv.qc.ca>
  • Loading branch information
hugbe8 and hbernard authored Mar 28, 2022
1 parent 81f0ace commit c565523
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/geo/src/lib/layer/shared/layers/vector-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,11 @@ export class VectorLayer extends Layer {
if (idAssociatedCall === (this.dataSource as WFSDataSource).mostRecentIdCallOGCFilter)
{
vectorSource.addFeatures(features);
success(features);
}
else {
success([]);
}
success(features);
} else {
onError();
}
Expand Down

0 comments on commit c565523

Please sign in to comment.