mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fix error when updating website.
This commit is contained in:
parent
82d1f1ba2c
commit
371425ab60
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ export default async (
|
|||
if (req.method === 'POST') {
|
||||
const { ...data } = req.body;
|
||||
|
||||
if (!data.userId && !data.teamId) {
|
||||
if (data.userId && data.userId === null && data.teamId && data.teamId === null) {
|
||||
badRequest(res, 'A website must be assigned to a User or Team.');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue