fix bug
This commit is contained in:
parent
e7a1bf5aed
commit
d5b2aeb673
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user