File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/theme-pink-cupcake/src/views/Admin Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ const { fetchGroup, apiError } = useGroupApi()
2828/**
2929 * Methods - Fetch group
3030 */
31- async function fetch() {
32- await fetchGroup (route .params .slug .toString ()).then ((fetchedGroup ) => {
31+ function fetch() {
32+ fetchGroup (route .params .slug .toString ()).then ((fetchedGroup ) => {
3333 group .value = fetchedGroup
3434 page .title = group .value .name
3535 })
@@ -40,7 +40,7 @@ async function fetch() {
4040 */
4141watch (
4242 () => route .params .slug ,
43- async () => fetch (),
43+ () => fetch (),
4444 { immediate: true }
4545)
4646 </script >
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ const { fetchRole, apiError } = useRolesApi()
2828/**
2929 * Methods - Fetch group
3030 */
31- async function fetch() {
32- await fetchRole (route .params .slug .toString ()).then ((fetchedRole ) => {
31+ function fetch() {
32+ fetchRole (route .params .slug .toString ()).then ((fetchedRole ) => {
3333 role .value = fetchedRole
3434 page .title = role .value .name
3535 })
@@ -40,7 +40,7 @@ async function fetch() {
4040 */
4141watch (
4242 () => route .params .slug ,
43- async () => fetch (),
43+ () => fetch (),
4444 { immediate: true }
4545)
4646 </script >
You can’t perform that action at this time.
0 commit comments