pl-fe: fix after react-query update
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -25,7 +25,7 @@ const useAnnouncements = () => {
|
||||
const result = useQuery<ReadonlyArray<AdminAnnouncement>>({
|
||||
queryKey: ['admin', 'announcements'],
|
||||
queryFn: getAnnouncements,
|
||||
placeholderData: [],
|
||||
placeholderData: [] as ReadonlyArray<AdminAnnouncement>,
|
||||
});
|
||||
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user