diff options
author | bobzel <zzzman@gmail.com> | 2023-09-29 10:43:50 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-09-29 10:43:50 -0400 |
commit | adc81b8eb374ee7cc729a2383bd8407ee2eb848f (patch) | |
tree | 8768f0dde4408dc7bdc4ccc128199eb76262fff3 | |
parent | c5c511fe51e858ca52615aaedb193dc947b90932 (diff) |
fixed deleting map pins to remove their associated child filter.
-rw-r--r-- | src/client/views/nodes/MapBox/MapBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/MapBox/MapBox.tsx b/src/client/views/nodes/MapBox/MapBox.tsx index a419858fc..65c138975 100644 --- a/src/client/views/nodes/MapBox/MapBox.tsx +++ b/src/client/views/nodes/MapBox/MapBox.tsx @@ -550,7 +550,7 @@ export class MapBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps // Removes filter Doc.setDocFilter(this.rootDoc, 'latitude', this.selectedPin.latitude, 'remove'); Doc.setDocFilter(this.rootDoc, 'longitude', this.selectedPin.longitude, 'remove'); - Doc.setDocFilter(this.rootDoc, '-linkedTo', `mapPin=${Field.toString(DocCast(this.selectedPin.mapPin))}`, 'remove'); + Doc.setDocFilter(this.rootDoc, '-linkedTo', `mapPin=${Field.toScriptString(DocCast(this.selectedPin))}`, 'remove'); this.removePushpin(this.selectedPin); } |