diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/index.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/index.tsx index ff95d6cd08..9c7ae0c7cc 100644 --- a/web/app/components/plugins/plugin-detail-panel/subscription-list/index.tsx +++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/index.tsx @@ -30,7 +30,7 @@ export const SubscriptionList = ({ detail }: Props) => { const showTopBorder = detail.declaration.tool || detail.declaration.endpoint // Fetch subscriptions - const { data: subscriptions, isLoading } = useTriggerSubscriptions(`${detail.plugin_id}/${detail.declaration.name}`) + const { data: subscriptions, isLoading, refetch } = useTriggerSubscriptions(`${detail.plugin_id}/${detail.declaration.name}`) // Modal states const [isShowAddModal, { @@ -58,8 +58,7 @@ export const SubscriptionList = ({ detail }: Props) => { } const handleRefreshList = () => { - // This will be called after successful operations - // The query will auto-refresh due to React Query + refetch() } if (isLoading) { @@ -98,9 +97,11 @@ export const SubscriptionList = ({ detail }: Props) => { ) : ( // List state with header and secondary add button <> -