This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c824aa699 fix: Add null check in query and storage component (#14663)
4c824aa699 is described below

commit 4c824aa699dde6e90f9aecafd94096064103494b
Author: Ashish kumar choubey <[email protected]>
AuthorDate: Tue Dec 17 01:41:27 2024 +0530

    fix: Add null check in query and storage component (#14663)
---
 .../app/components/Homepage/Operations/AddQueryComponent.tsx          | 4 ++--
 .../app/components/Homepage/Operations/AddStorageComponent.tsx        | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddQueryComponent.tsx
 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddQueryComponent.tsx
index 654b7d06dd..9270734fa7 100644
--- 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddQueryComponent.tsx
+++ 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddQueryComponent.tsx
@@ -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"
           />
@@ -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"
           />
diff --git 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddStorageComponent.tsx
 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddStorageComponent.tsx
index 6fbce64d43..3f1515ec53 100644
--- 
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddStorageComponent.tsx
+++ 
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddStorageComponent.tsx
@@ -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)
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to