Update AddNewVariableButton component to set default type value
This commit is contained in:
parent
ca1bb8dd36
commit
242bd55a24
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ import { useTypesStore } from "../../stores/typesStore";
|
||||||
export default function AddNewVariableButton({ children }): JSX.Element {
|
export default function AddNewVariableButton({ children }): JSX.Element {
|
||||||
const [key, setKey] = useState("");
|
const [key, setKey] = useState("");
|
||||||
const [value, setValue] = useState("");
|
const [value, setValue] = useState("");
|
||||||
const [type, setType] = useState("");
|
const [type, setType] = useState("Generic");
|
||||||
const [fields, setFields] = useState<string[]>([]);
|
const [fields, setFields] = useState<string[]>([]);
|
||||||
const [open, setOpen] = useState(false);
|
const [open, setOpen] = useState(false);
|
||||||
const setErrorData = useAlertStore((state) => state.setErrorData);
|
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue