From 64117157ef263e5a817fa647a6f9b59d4e37f9c3 Mon Sep 17 00:00:00 2001 From: vardhan0604 Date: Wed, 3 Jul 2024 18:34:41 +0530 Subject: [PATCH] fix new class not loading without reload --- src/dashboard/Data/Browser/DataBrowser.react.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/dashboard/Data/Browser/DataBrowser.react.js b/src/dashboard/Data/Browser/DataBrowser.react.js index 4e1947e1e5..1df0b97607 100644 --- a/src/dashboard/Data/Browser/DataBrowser.react.js +++ b/src/dashboard/Data/Browser/DataBrowser.react.js @@ -110,12 +110,9 @@ export default class DataBrowser extends React.Component { }, 1000); } - getAllClassesSchema(schema,allClasses) { - + getAllClassesSchema(schema) { + const allClasses = Object.keys(schema.data.get('classes').toObject()); const schemaSimplifiedData = {}; - if(!allClasses){ - allClasses = Object.keys(schema.data.get('classes').toObject()); - } allClasses.forEach((className) => { const classSchema = schema.data.get('classes').get(className); if (classSchema) {