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 ce9f20a4c1 [ui] Fix: Prevent Runtime Errors by Validating Add Schema
JSON Fields (#15680)
ce9f20a4c1 is described below
commit ce9f20a4c10230fed80e00cca2f710d5ed12b00e
Author: Saptarshi Sengupta <[email protected]>
AuthorDate: Thu May 1 02:24:00 2025 +0530
[ui] Fix: Prevent Runtime Errors by Validating Add Schema JSON Fields
(#15680)
---
.../main/resources/app/components/Homepage/Operations/AddSchemaOp.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddSchemaOp.tsx
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddSchemaOp.tsx
index d5ea5c1cda..f5acf630b4 100644
---
a/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddSchemaOp.tsx
+++
b/pinot-controller/src/main/resources/app/components/Homepage/Operations/AddSchemaOp.tsx
@@ -156,7 +156,7 @@ export default function AddSchemaOp({
const types =
["dimensionFieldSpecs","metricFieldSpecs","dateTimeFieldSpecs"];
let notEmpty = true;
types.map((t)=>{
- if(schemaConfig[t].length)
+ if(schemaConfig[t] && schemaConfig[t].length > 0)
{
notEmpty = false
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]