fix: Typo in regenerate function and button

pull/12/head
kodaho 2024-04-08 18:32:14 +02:00
parent d7f82f838f
commit 0f3d5a86e4
No known key found for this signature in database
GPG Key ID: ACFA0533C5A30ED5
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>
}
/>