fix(ui) - onboarding project edit

This commit is contained in:
Shekar Siri 2023-04-27 17:16:35 +02:00
parent 5eac461564
commit 3e37dce1cd

View file

@ -43,7 +43,9 @@ const NewSiteForm = ({
update(site, site.id).then((response) => {
if (!response || !response.errors || response.errors.size === 0) {
onClose(null);
fetchList();
if (!pathname.includes('onboarding')) {
fetchList();
}
toast.success('Project updated successfully');
} else {
toast.error(response.errors[0]);