final lint errors

This commit is contained in:
Kyle Corbitt
2023-06-26 23:46:10 -07:00
parent bca35c9eb2
commit 267a5381f3
4 changed files with 5 additions and 4 deletions

View File

@@ -9,8 +9,9 @@ export default function NewScenarioButton() {
const utils = api.useContext();
const [onClick] = useHandledAsyncCallback(async () => {
if (!experiment.data) return;
await mutation.mutateAsync({
experimentId: experiment.data!.id,
experimentId: experiment.data.id,
});
await utils.scenarios.list.invalidate();
}, [mutation]);