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 } },