Skip to content

Commit 0535d16

Browse files
committed
fix: updating the test role page without reload
1 parent 5f63268 commit 0535d16

File tree

1 file changed

+1
-1
lines changed
  • apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings

1 file changed

+1
-1
lines changed

apps/dashboard/web/polaris_web/web/src/apps/dashboard/pages/testing/TestRoleSettings/TestRoleSettings.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function TestRoleSettings() {
134134
func.setToast(true, true, "Please select valid values for a test role")
135135
} else {
136136
if (isNew) {
137-
api.addTestRoles(roleName, andConditions, orConditions).then((res) => {
137+
await api.addTestRoles(roleName, andConditions, orConditions).then((res) => {
138138
func.setToast(true, false, "Test role added")
139139
setChange(false);
140140
navigate(null, { state: { name: roleName, endpoints: { andConditions: andConditions, orConditions: orConditions } },

0 commit comments

Comments
 (0)