Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 30006d4

Browse files
committed
Don't remove city if it doesn't contain nameWithHierarchy
1 parent 441079f commit 30006d4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/events/event-store.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,16 @@ const store = new Vuex.Store({
7575

7676
// This is a workaround for '$$hashKey': 'value' in the json objects of some events.
7777
// This is something from angular tracking its props being persisted somehow.
78-
let city = {};
7978
if (event.city.nameWithHierarchy) {
80-
city = { nameWithHierarchy: event.city.nameWithHierarchy };
81-
delete event.city;
79+
event.city = { nameWithHierarchy: event.city.nameWithHierarchy };
8280
}
8381

8482
if (event.sessions) {
8583
event.sessions[0].tickets.forEach(t => delete t.approvedApplications);
8684
}
8785

8886
// default is to not send emails when editing
89-
state.event = { ...event, city, sendEmails: false };
87+
state.event = { ...event, sendEmails: false };
9088
},
9189

9290
setEventName(state, name) {

0 commit comments

Comments
 (0)