Skip to content

Commit 520827a

Browse files
committed
fix: ensure action ID is defined when setting loading state in handleActionClick
1 parent b050a18 commit 520827a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async function handleActionClick(action: AdminForthActionInput, payload: any) {
150150
recordId: route.params.primaryKey as string,
151151
extra: payload || {},
152152
setLoadingState: (loading: boolean) => {
153-
actionLoadingStates.value[action.id] = loading;
153+
actionLoadingStates.value[action.id!] = loading;
154154
},
155155
onSuccess: async (data: any) => {
156156
await coreStore.fetchRecord({

0 commit comments

Comments
 (0)