Fix presets bookmark field name

This fixes the presets and bookmarks browse view not showing any values
in the name column.
This commit is contained in:
Nicola Krumschmidt
2020-10-08 02:11:01 +02:00
parent 157878b387
commit d0db08ef92

View File

@@ -106,7 +106,7 @@ import PresetsInfoDrawerDetail from './components/presets-info-drawer-detail.vue
type PresetRaw = {
id: number;
title: null | string;
bookmark: null | string;
user: null | { first_name: string; last_name: string };
role: null | { name: string };
collection: string;
@@ -184,7 +184,7 @@ export default defineComponent({
scope: scope,
collection: collection,
layout: layout,
name: preset.title,
name: preset.bookmark,
} as Preset;
});
});
@@ -199,7 +199,7 @@ export default defineComponent({
params: {
fields: [
'id',
'title',
'bookmark',
'user.first_name',
'user.last_name',
'role.name',