From 0535d1671aa0a948fa38fef2dc20bcf87e63c089 Mon Sep 17 00:00:00 2001 From: Umesh Kumar <166806589+TangoBeeAkto@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:04:59 +0530 Subject: [PATCH] fix: updating the test role page without reload --- .../pages/testing/TestRoleSettings/TestRoleSettings.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings/TestRoleSettings.jsx b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings/TestRoleSettings.jsx index dd30d7488..929db6fd1 100644 --- a/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings/TestRoleSettings.jsx +++ b/apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings/TestRoleSettings.jsx @@ -134,7 +134,7 @@ function TestRoleSettings() { func.setToast(true, true, "Please select valid values for a test role") } else { if (isNew) { - api.addTestRoles(roleName, andConditions, orConditions).then((res) => { + await api.addTestRoles(roleName, andConditions, orConditions).then((res) => { func.setToast(true, false, "Test role added") setChange(false); navigate(null, { state: { name: roleName, endpoints: { andConditions: andConditions, orConditions: orConditions } },