From 9007f92f87f5680039bb5a9c21675f9261784872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=82=20=E4=BD=B3=E4=BF=8A?= Date: Sun, 24 Sep 2023 03:40:17 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=88=A4=E6=96=ADcategory=5F?= =?UTF-8?q?=5Fexpand=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/default/routes/api_workflow_nav.router.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/service-workflow/main/default/routes/api_workflow_nav.router.js b/services/service-workflow/main/default/routes/api_workflow_nav.router.js index edb533fc69..ab2aba7a7a 100644 --- a/services/service-workflow/main/default/routes/api_workflow_nav.router.js +++ b/services/service-workflow/main/default/routes/api_workflow_nav.router.js @@ -167,9 +167,9 @@ const getCategoriesMonitor = async (userSession, req) => { level: 3, value: v2[0]._id, name: 'flow', - to: `/app/${appId}/instances/grid/monitor?additionalFilters=['flow', '=', '${v2[0]._id}']&flowId=${v2[0]._id}&categoryId=${v[0].category__expand._id}`, + to: `/app/${appId}/instances/grid/monitor?additionalFilters=['flow', '=', '${v2[0]._id}']&flowId=${v2[0]._id}&categoryId=${v[0].category__expand && v[0].category__expand._id}`, }, - value: `/app/${appId}/instances/grid/monitor?additionalFilters=['flow', '=', '${v2[0]._id}']&flowId=${v2[0]._id}&categoryId=${v[0].category__expand._id}` + value: `/app/${appId}/instances/grid/monitor?additionalFilters=['flow', '=', '${v2[0]._id}']&flowId=${v2[0]._id}&categoryId=${v[0].category__expand && v[0].category__expand._id}` }) }) output.push({ @@ -180,9 +180,9 @@ const getCategoriesMonitor = async (userSession, req) => { level: 2, value: v[0].category__expand && v[0].category__expand._id, name: 'category', - to: `/app/${appId}/instances/grid/monitor?additionalFilters=['category', '=', ${v[0].category__expand?"'" + v[0].category__expand._id + "'":null}]&flowId=&categoryId=${v[0].category__expand._id}`, + to: `/app/${appId}/instances/grid/monitor?additionalFilters=['category', '=', ${v[0].category__expand?"'" + v[0].category__expand._id + "'":null}]&flowId=&categoryId=${v[0].category__expand && v[0].category__expand._id}`, }, - value: `/app/${appId}/instances/grid/monitor?additionalFilters=['category', '=', ${v[0].category__expand?"'" + v[0].category__expand._id + "'":null}]&flowId=&categoryId=${v[0].category__expand._id}` + value: `/app/${appId}/instances/grid/monitor?additionalFilters=['category', '=', ${v[0].category__expand?"'" + v[0].category__expand._id + "'":null}]&flowId=&categoryId=${v[0].category__expand && v[0].category__expand._id}` }) }) }