diff --git a/packages/resource-detail/src/resource-detail.tsx b/packages/resource-detail/src/resource-detail.tsx index fe5b3e0d6..d77f3336d 100644 --- a/packages/resource-detail/src/resource-detail.tsx +++ b/packages/resource-detail/src/resource-detail.tsx @@ -243,14 +243,16 @@ function ResourceDetail({ try { if (typeof resource.delete === 'function') { await resource.delete(resource.id); - window.history.back(); + setTimeout(() => { + window.history.back(); + }, 1000); } else { console.error('Delete method not found on resource'); } } catch (e) { console.error(e); } - } + }; return (