Type fixes
This commit is contained in:
@@ -36,7 +36,7 @@ const BookmarkSettings = () => {
|
||||
const { data: bookmarkData, isFetching: bookmarkDataIsFetching } = useQueryAPI({
|
||||
endpoint: bookmarksEndpoint,
|
||||
});
|
||||
const bookmarks = bookmarkData || [];
|
||||
const bookmarks: Bookmark[] = bookmarkData || [];
|
||||
const categoriesEndpoint = 'api/bookmarkCategories';
|
||||
const { data: groupData, isFetched: groupsIsFetched } = useQueryAPI({
|
||||
endpoint: categoriesEndpoint,
|
||||
@@ -50,7 +50,7 @@ const BookmarkSettings = () => {
|
||||
const [debouncedGroupSearch] = useDebouncedValue(searchValue, 500);
|
||||
const [modalOpened, { open: openModal, close: closeModal }] = useDisclosure(false);
|
||||
const [isLoading, setIsLoading] = useState(false);
|
||||
const foundBookmarkGroups = [
|
||||
const foundBookmarkGroups: BookmarkGroup[] = [
|
||||
...new Set(
|
||||
bookmarks
|
||||
.filter(
|
||||
@@ -68,7 +68,7 @@ const BookmarkSettings = () => {
|
||||
),
|
||||
),
|
||||
];
|
||||
const foundGroups = groupData.filter((a: BookmarkGroup) =>
|
||||
const foundGroups: BookmarkGroup[] = groupData.filter((a: BookmarkGroup) =>
|
||||
a.categoryName.toLowerCase().includes((debouncedGroupSearch as string).toLowerCase()),
|
||||
);
|
||||
const handleClose = () => {
|
||||
|
||||
Reference in New Issue
Block a user