[docs] removes type annotation in JS code in the tutorial (#1329)

This commit is contained in:
Craig McIlwrath 2023-07-19 09:01:01 -04:00 committed by GitHub
parent 8b1d6a96ab
commit 4da36535ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ const NewTaskForm = () => {
const description = target.description.value
target.reset()
await createTask({ description })
} catch (err: any) {
} catch (err) {
window.alert("Error: " + err.message)
}
}