Skip to content

Commit a02dbf0

Browse files
luizhf42gustavosbarreto
authored andcommitted
fix(ui): update web endpoints list after creation
- add async/await keywords to ensure the list is fetched
1 parent aca00ff commit a02dbf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/WebEndpoints.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const hasAuthorizationCreateWebEndpoint = () => {
8585
return role !== "" && hasPermission(authorizer.role[role], actions.tunnel.create);
8686
};
8787
88-
const searchWebEndpoints = () => {
88+
const searchWebEndpoints = async () => {
8989
let encodedFilter = "";
9090
9191
if (filter.value) {
@@ -99,7 +99,7 @@ const searchWebEndpoints = () => {
9999
}
100100
101101
try {
102-
store.dispatch("webEndpoints/search", {
102+
await store.dispatch("webEndpoints/search", {
103103
page: store.getters["webEndpoints/getPage"],
104104
perPage: store.getters["webEndpoints/getPerPage"],
105105
filter: encodedFilter,

0 commit comments

Comments
 (0)