From 1d6f158509c870e9d79c42e3084a79b5f6dc487c Mon Sep 17 00:00:00 2001 From: Brian Cao Date: Wed, 26 Oct 2022 11:36:58 -0700 Subject: [PATCH] fix id/uuid --- components/forms/WebsiteEditForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/forms/WebsiteEditForm.js b/components/forms/WebsiteEditForm.js index b56e21c..f13d0aa 100644 --- a/components/forms/WebsiteEditForm.js +++ b/components/forms/WebsiteEditForm.js @@ -78,7 +78,7 @@ export default function WebsiteEditForm({ values, onSave, onClose }) { const [message, setMessage] = useState(); const handleSubmit = async values => { - const { id: websiteId } = values; + const { websiteUuid: websiteId } = values; const { ok, data } = await post(websiteId ? `/websites/${websiteId}` : '/websites', values);