Skip to content

Commit

Permalink
Handle error instead of ignoring it.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaddox5 committed Oct 8, 2024
1 parent 66e9a71 commit 910094c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/src/components/admin/admin_add_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ const AddModal = ({ setData, closeModal }): JSX.Element => {
const addScreen = () => {
const newRow = {
app_id: formValues.app_id,
// @ts-expect-error
app_params: defaultAppParamsByAppId[formValues.app_id],
app_params: defaultAppParamsByAppId[formValues.app_id ?? 0],
device_id: formValues.device_id,
disabled: false,
id: formValues.id,
Expand Down

0 comments on commit 910094c

Please sign in to comment.