mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
fix: news section — remove duplicate title, add newspaper icon, hide views from users, fix cache invalidation
This commit is contained in:
@@ -293,6 +293,7 @@ export default function AdminNews() {
|
||||
onSuccess: () => {
|
||||
haptic.success();
|
||||
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
|
||||
queryClient.invalidateQueries({ queryKey: ['news'] });
|
||||
},
|
||||
});
|
||||
|
||||
@@ -301,6 +302,7 @@ export default function AdminNews() {
|
||||
onSuccess: () => {
|
||||
haptic.success();
|
||||
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
|
||||
queryClient.invalidateQueries({ queryKey: ['news'] });
|
||||
},
|
||||
});
|
||||
|
||||
@@ -309,6 +311,7 @@ export default function AdminNews() {
|
||||
onSuccess: () => {
|
||||
haptic.success();
|
||||
queryClient.invalidateQueries({ queryKey: ['admin', 'news'] });
|
||||
queryClient.invalidateQueries({ queryKey: ['news'] });
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user