Fixed value problem for homepage
This commit is contained in:
@@ -156,7 +156,7 @@ export default {
|
|||||||
this.selectedInstitution = newVal.institution || null;
|
this.selectedInstitution = newVal.institution || null;
|
||||||
this.selectedEventPlace = newVal.eventPlace || null;
|
this.selectedEventPlace = newVal.eventPlace || null;
|
||||||
this.selectedContactPersons = newVal.contactPersons || [];
|
this.selectedContactPersons = newVal.contactPersons || [];
|
||||||
this.onHomepage = newVal.alsoOnHomepage || false;
|
this.onHomepage = newVal.alsoOnHomepage == 1 ? true : false;
|
||||||
this.assignedImage = newVal.relatedImage || null;
|
this.assignedImage = newVal.relatedImage || null;
|
||||||
if (this.assignedImage) {
|
if (this.assignedImage) {
|
||||||
this.fetchImageFilename();
|
this.fetchImageFilename();
|
||||||
@@ -201,7 +201,7 @@ export default {
|
|||||||
};
|
};
|
||||||
payload.dayOfWeek = payload.dayOfWeek ? payload.dayOfWeek.value ?? -1 : -1;
|
payload.dayOfWeek = payload.dayOfWeek ? payload.dayOfWeek.value ?? -1 : -1;
|
||||||
payload.relatedImage = this.assignedImage;
|
payload.relatedImage = this.assignedImage;
|
||||||
payload.alsoOnHomepage = this.onHomepage;
|
payload.alsoOnHomepage = this.onHomepage ? 1 : 0;
|
||||||
let response;
|
let response;
|
||||||
if (this.eventData.id) {
|
if (this.eventData.id) {
|
||||||
response = await axios.put(`/events/${this.eventData.id}`, payload);
|
response = await axios.put(`/events/${this.eventData.id}`, payload);
|
||||||
|
|||||||
Reference in New Issue
Block a user