fix some bugs
This commit is contained in:
@@ -56,7 +56,7 @@ export default function CategorySelect(props: IProps) {
|
||||
setCategoryInfos(tmpCategoryInfos);
|
||||
});
|
||||
});
|
||||
}, [updateTriggerHolder]);
|
||||
}, [updateTriggerHolder, open]);
|
||||
|
||||
const handleCancel = () => {
|
||||
setOpen(false);
|
||||
@@ -90,7 +90,6 @@ export default function CategorySelect(props: IProps) {
|
||||
<Checkbox
|
||||
checked={categoryInfo.selected}
|
||||
onChange={(e) => handleChange(e, categoryInfo.category.id)}
|
||||
name="checkedB"
|
||||
color="default"
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -26,7 +26,7 @@ export default function MangaDetails(props: IProps) {
|
||||
const [inLibrary, setInLibrary] = useState<string>(
|
||||
manga.inLibrary ? 'In Library' : 'Not In Library',
|
||||
);
|
||||
const [categoryDialogOpen, setCategoryDialogOpen] = useState<boolean>(true);
|
||||
const [categoryDialogOpen, setCategoryDialogOpen] = useState<boolean>(false);
|
||||
|
||||
function addToLibrary() {
|
||||
setInLibrary('adding');
|
||||
|
||||
Reference in New Issue
Block a user