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

This commit is contained in:
Brian Cao 2022-10-26 11:38:41 -07:00
commit a49638b4c7

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);