Load changelog only if it will be displayed

This commit is contained in:
Ingo Oppermann 2022-11-09 11:20:36 +01:00
parent 4f01a364d3
commit 500faeb2a7
No known key found for this signature in database
GPG Key ID: 2AB32426E9DD229E

View File

@ -543,7 +543,9 @@ export default function RestreamerUI(props) {
onState={handleStateChannel}
/>
)}
{expand && <Changelog open={$changelog.open} onClose={handleCloseChangelog} current={$changelog.current} previous={$changelog.previous} />}
{expand && $changelog.open && (
<Changelog open={$changelog.open} onClose={handleCloseChangelog} current={$changelog.current} previous={$changelog.previous} />
)}
</NotifyProvider>
</I18n>
);