fix(ui): fix first added board doesn't show until refresh

Had incorrect `invalidatesTags` array for the mutation.
This commit is contained in:
psychedelicious 2023-06-22 10:48:23 +10:00
parent 6ee0e197bb
commit 922319cb84

View File

@ -86,7 +86,7 @@ export const api = createApi({
method: 'POST',
params: { board_name },
}),
invalidatesTags: ['Board'],
invalidatesTags: [{ id: 'Board', type: LIST }],
}),
updateBoard: build.mutation<BoardDTO, UpdateBoardArg>({