File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/components/Notifications Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ export default function SilenceNotificationsList({
235
235
236
236
const selectedNotificationSilenceId = searchParams . get ( "id" ) ?? undefined ;
237
237
238
- const { data : selectedNotificationSilence } = useQuery ( {
238
+ const { data : selectedNotificationSilence , refetch } = useQuery ( {
239
239
queryKey : [ "notification_silences" , selectedNotificationSilenceId ] ,
240
240
enabled : ! ! selectedNotificationSilenceId ,
241
241
queryFn : async ( ) =>
@@ -264,9 +264,11 @@ export default function SilenceNotificationsList({
264
264
searchParams . delete ( "id" ) ;
265
265
setSearchParams ( searchParams ) ;
266
266
refresh ( ) ;
267
+ refetch ( ) ;
267
268
} }
268
269
onClose = { ( ) => {
269
270
searchParams . delete ( "id" ) ;
271
+ refetch ( ) ;
270
272
setSearchParams ( searchParams ) ;
271
273
} }
272
274
data = { selectedNotificationSilence }
You can’t perform that action at this time.
0 commit comments