This commit is contained in:
monoid 2022-06-20 17:37:37 +09:00
parent e7a1bf5aed
commit d5b2aeb673
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export const GalleryInfo = (props: GalleryProp) => {
const c = await ContentAccessor.findList(props.option); const c = await ContentAccessor.findList(props.option);
//todo : if c is undefined, retry to fetch 3 times. and show error message. //todo : if c is undefined, retry to fetch 3 times. and show error message.
setState({ documents: c }); setState({ documents: c });
setLoadAll(c.length > 0); setLoadAll(c.length == 0);
}) })
load(); load();
}, [props.diff]); }, [props.diff]);