mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Bug Fixes
This commit is contained in:
@@ -19,7 +19,7 @@ export default function AddSite({ onSiteAdded }: AddSiteProps) {
|
||||
const { addSite } = useSite();
|
||||
|
||||
const addSiteHandler = async () => {
|
||||
const response = addSite({ id: "", name, description, networks: [] });
|
||||
const response = addSite({ id: 0, name, description, networks: [] });
|
||||
if (typeof response === "string") {
|
||||
setError(response)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user