diff --git a/plugins/tracker-resources/src/components/issues/AssigneeEditor.svelte b/plugins/tracker-resources/src/components/issues/AssigneeEditor.svelte index c6330e1b38..d6849e3091 100644 --- a/plugins/tracker-resources/src/components/issues/AssigneeEditor.svelte +++ b/plugins/tracker-resources/src/components/issues/AssigneeEditor.svelte @@ -40,7 +40,8 @@ export let shrink: number = 0 export let isAction: boolean = false - $: _object = object ?? value ?? [] + $: _object = + (typeof object !== 'string' ? object : undefined) ?? (typeof value !== 'string' ? value : undefined) ?? [] const client = getClient() const dispatch = createEventDispatcher() @@ -48,7 +49,7 @@ const docQuery: DocumentQuery = { active: true } const handleAssigneeChanged = async (newAssignee: Ref | undefined | null) => { - if (newAssignee === undefined || (!Array.isArray(_object) && _object.assignee === newAssignee)) { + if (newAssignee === undefined || (!Array.isArray(_object) && _object?.assignee === newAssignee)) { return } diff --git a/plugins/view-resources/src/components/list/List.svelte b/plugins/view-resources/src/components/list/List.svelte index f23a540401..9d47ece447 100644 --- a/plugins/view-resources/src/components/list/List.svelte +++ b/plugins/view-resources/src/components/list/List.svelte @@ -13,7 +13,7 @@ // limitations under the License. -->