Fix issue #20: Add notes to a map
This commit is contained in:
@@ -120,6 +120,9 @@ function handleCampaignEntryUpdated({ entityType, entry }) {
|
||||
if (!list) return;
|
||||
list.value = list.value.map((current) => current._id === entry._id ? entry : current)
|
||||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
// The anchored map is this very entry (its pins changed, say): write it back without touching
|
||||
// the pane, so switching back from the notes still shows what is on the map.
|
||||
if (entityType === 'map' && AnchoredMap.value?._id === entry._id) AnchoredMap.value = entry;
|
||||
}
|
||||
|
||||
const campaignId = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user