feat(ui): update delete boards modal logic for updated board images endpoint

The functionality is the same - just need to explicitly opt out of categories and is_intermediate constraints.
This commit is contained in:
psychedelicious
2025-02-26 14:33:47 +10:00
parent 1a42fbf541
commit a103bc8a0a

View File

@@ -36,7 +36,13 @@ const DeleteBoardModal = () => {
const boardToDelete = useStore($boardToDelete);
const { t } = useTranslation();
const { currentData: boardImageNames, isFetching: isFetchingBoardNames } = useListAllImageNamesForBoardQuery(
boardToDelete?.board_id ?? skipToken
boardToDelete?.board_id
? {
board_id: boardToDelete?.board_id,
categories: undefined,
is_intermediate: undefined,
}
: skipToken
);
const selectImageUsageSummary = useMemo(