Adapt Log view to new configuration endpoint in the API

This commit is contained in:
D. Berge
2023-09-10 12:01:59 +02:00
parent 158e0fb788
commit 5fc51de7d8

View File

@@ -611,9 +611,9 @@ export default {
}, },
async getPresetRemarks () { async getPresetRemarks () {
const url = `/project/${this.$route.params.project}/configuration/events/presetRemarks`; const url = `/project/${this.$route.params.project}/configuration`;
this.presetRemarks = await this.api([url]); this.presetRemarks = (await this.api([url]))?.events?.presetRemarks ?? {};
}, },
newItem (from = {}) { newItem (from = {}) {