fix(view): correctly resolve label for filtered views or buckets
(cherry picked from commit 5a7c3927f39fc6b677fd5a76452e1b658d5cf84f)
This commit is contained in:
parent
614f70db36
commit
6b850c56f7
@ -30,7 +30,7 @@ const projectStore = useProjectStore()
|
|||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
const transform = (filterString: string) => transformFilterStringFromApi(
|
const transform = (filterString: string) => transformFilterStringFromApi(
|
||||||
filterString,
|
filterString,
|
||||||
labelId => labelStore.getLabelById(labelId)?.title,
|
labelId => labelStore.getLabelById(labelId)?.title || null,
|
||||||
projectId => projectStore.projects[projectId]?.title || null,
|
projectId => projectStore.projects[projectId]?.title || null,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ onBeforeMount(() => {
|
|||||||
function save() {
|
function save() {
|
||||||
const transformFilter = (filterQuery: string) => transformFilterStringForApi(
|
const transformFilter = (filterQuery: string) => transformFilterStringForApi(
|
||||||
filterQuery,
|
filterQuery,
|
||||||
labelTitle => labelStore.filterLabelsByQuery([], labelTitle)[0]?.id || null,
|
labelTitle => labelStore.getLabelByExactTitle(labelTitle)?.id || null,
|
||||||
projectTitle => {
|
projectTitle => {
|
||||||
const found = projectStore.findProjectByExactname(projectTitle)
|
const found = projectStore.findProjectByExactname(projectTitle)
|
||||||
return found?.id || null
|
return found?.id || null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user