Typescript: limit tag to be a string not a number

This commit is contained in:
Gabe Kangas 2021-02-03 21:08:47 -08:00
parent ed80ac13b5
commit e142fa9e7c

View file

@ -18,7 +18,7 @@ import {
const { Title } = Typography;
export default function EditInstanceTags() {
const [newTagInput, setNewTagInput] = useState<string | number>('');
const [newTagInput, setNewTagInput] = useState<string>('');
const [submitStatus, setSubmitStatus] = useState<StatusState>(null);
const serverStatusData = useContext(ServerStatusContext);