fix id/uuid

This commit is contained in:
Brian Cao 2022-10-26 11:36:58 -07:00
parent 8b64ef1a4e
commit 1d6f158509

View File

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