π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
fix : passing correct props to deleteCategory (#491)
saksham4146bf18812a
diff --git a/frontend/app/pages/dashboard/categories/[id]/edit.vue b/frontend/app/pages/dashboard/categories/[id]/edit.vueindex 5a2c61d6..eb7605ce 100644--- a/frontend/app/pages/dashboard/categories/[id]/edit.vue+++ b/frontend/app/pages/dashboard/categories/[id]/edit.vue@@ -68,7 +68,14 @@ const updateCategory = async () => {.catch(e => useNotifications().add({ message: e, title: t('common.status.error'), type: 'error' }));};const deleteCategory = async () => {- useModal().add(new Modal(shallowRef(DeleteModal), { props: { categoryId: category.value?.id || '' } }));+ useModal().add(+ new Modal(shallowRef(DeleteModal), {+ props: {+ node: category.value,+ redirectTo: '/dashboard/categories'+ }+ })+ );};</script>