Skip to content

Commit

Permalink
fix: Add null check in query and storage component (#14663)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkr96 authored Dec 16, 2024
1 parent 2701f6c commit 4c824aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function AddQueryComponent({
<Input
id="timeoutMs"
key="timeoutMs"
value={tableDataObj.query.timeoutMs || ""}
value={tableDataObj?.query?.timeoutMs || ""}
onChange={(e)=> changeHandler('timeoutMs', e.target.value)}
type="number"
/>
Expand All @@ -79,7 +79,7 @@ export default function AddQueryComponent({
<Input
id="maxQueriesPerSecond"
key="maxQueriesPerSecond"
value={tableDataObj.quota.maxQueriesPerSecond || ""}
value={tableDataObj?.quota?.maxQueriesPerSecond || ""}
onChange={(e)=> changeHandler('maxQueriesPerSecond', e.target.value)}
type="number"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export default function AddStorageComponent({
<Input
id="maxQueriesPerSecond"
key="maxQueriesPerSecond"
value={tableDataObj.quota.storage || ""}
value={tableDataObj?.quota?.storage || ""}
onChange={(e)=>
changeHandler('maxQueriesPerSecond', e.target.value)
}
Expand Down

0 comments on commit 4c824aa

Please sign in to comment.