mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
fix: changelog fetching empty markdown file
This commit is contained in:
parent
8bcd548ae3
commit
285f084acb
2 changed files with 6 additions and 5 deletions
|
@ -20,9 +20,11 @@ export const ChangelogModal = (props: {
|
|||
>({});
|
||||
|
||||
useEffect(() => {
|
||||
_fetchVersionChangelog(props.version).then((data) => {
|
||||
setCurrentVersionChangelog(data);
|
||||
});
|
||||
if (props.version) {
|
||||
_fetchVersionChangelog(props.version).then((data) => {
|
||||
setCurrentVersionChangelog(data);
|
||||
});
|
||||
}
|
||||
|
||||
if (props.previousVersions.length > 0) {
|
||||
props.previousVersions.forEach((version) => {
|
||||
|
@ -36,7 +38,7 @@ export const ChangelogModal = (props: {
|
|||
});
|
||||
});
|
||||
}
|
||||
}, [props.isOpen]);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<Modal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue