From f20010920f6818577fe1e4116f0598021224babd Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Tue, 27 Aug 2024 13:40:48 +0200 Subject: [PATCH] fix: missing destructured param when calling openAssistantTask Signed-off-by: Julien Veyssier --- src/assistant.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assistant.js b/src/assistant.js index 839e46d0..2057260b 100644 --- a/src/assistant.js +++ b/src/assistant.js @@ -294,7 +294,7 @@ export function handleNotification(event) { async function showAssistantTaskResult(taskId) { getTask(taskId).then(response => { console.debug('showing results for task', response.data?.ocs?.data?.task) - openAssistantTask(response.data?.ocs?.data?.task) + openAssistantTask(response.data?.ocs?.data?.task, {}) }).catch(error => { if (error.response?.status === 401) { showError(t('assistant', 'Please log in to view the task result')) @@ -315,7 +315,7 @@ async function showAssistantTaskResult(taskId) { * @param {Array} params.actionButtons List of extra buttons to show in the assistant result form * @return {Promise} */ -export async function openAssistantTask(task, { isInsideViewer = undefined, actionButtons = undefined }) { +export async function openAssistantTask(task, { isInsideViewer = undefined, actionButtons = undefined } = {}) { const { default: Vue } = await import(/* webpackChunkName: "vue-lazy" */'vue') Vue.mixin({ methods: { t, n } }) const { showError } = await import(/* webpackChunkName: "dialogs-lazy" */'@nextcloud/dialogs')