mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
fix: use array.includes(string)
the proper way.
Because this `syncUpdatedProperties` function is only called once, it didn't trigger any issue in practice (as the check was always returning true).
This commit is contained in:
parent
d91c86e7fa
commit
d3730a99ff
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ U.FeatureMixin = {
|
||||||
|
|
||||||
syncUpdatedProperties: function (properties) {
|
syncUpdatedProperties: function (properties) {
|
||||||
// When updating latlng, sync the whole geometry
|
// When updating latlng, sync the whole geometry
|
||||||
if ('latlng'.includes(properties)) {
|
if (properties.includes('latlng')) {
|
||||||
const { subject, metadata, engine } = this.getSyncMetadata()
|
const { subject, metadata, engine } = this.getSyncMetadata()
|
||||||
engine.update(subject, metadata, 'geometry', this.getGeometry())
|
engine.update(subject, metadata, 'geometry', this.getGeometry())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue