mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
fix id/uuid
This commit is contained in:
parent
8b64ef1a4e
commit
1d6f158509
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user