Merge branch 'feat/um-86-fix-website-update' into app

This commit is contained in:
Brian Cao 2022-10-26 11:37:16 -07:00
commit 7eb9bf46e1

View File

@ -78,7 +78,7 @@ export default function WebsiteEditForm({ values, onSave, onClose }) {
const [message, setMessage] = useState(); const [message, setMessage] = useState();
const handleSubmit = async values => { const handleSubmit = async values => {
const { id: websiteId } = values; const { websiteUuid: websiteId } = values;
const { ok, data } = await post(websiteId ? `/websites/${websiteId}` : '/websites', values); const { ok, data } = await post(websiteId ? `/websites/${websiteId}` : '/websites', values);