pull/12/merge
kodaho 2024-04-08 18:33:39 +02:00 committed by GitHub
commit c094359372
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -55,14 +55,14 @@ const HomePage = () => {
[]
);
const regenrate = async () => {
const regenerate = async () => {
const { data } = await get(`/strapi-content-type-explorer/get-types`);
setData(data);
drawDiagram();
};
useEffectSkipInitial(() => {
regenrate();
regenerate();
}, [options.showAdminTypes, options.showPluginTypes]);
useEffect(() => {
@ -97,9 +97,9 @@ const HomePage = () => {
<Button
variant="secondary"
startIcon={<Refresh />}
onClick={regenrate}
onClick={regenerate}
>
Regenrate
Regenerate
</Button>
}
/>