Merge pull request #1140 from Hexastack/1139-bug---nlp-page-select-tab

fix(frontend): resolve nlp page select tab issue
This commit is contained in:
Med Marrouchi 2025-06-18 17:04:55 +01:00 committed by GitHub
commit 03559d974f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,12 +116,18 @@ export const Nlp = ({
{/* NLP SAMPLES */}
<Grid sx={{ padding: "20px" }}>
<TabPanel value={selectedTab} index="sample">
<NlpSample />
{selectedTab === "sample" ? <NlpSample /> : null}
</TabPanel>
{/* NLP ENTITIES */}
<TabPanel value={selectedTab} index="entity">
{entityId ? <NlpValues entityId={entityId} /> : <NlpEntity />}
{selectedTab === "entity" ? (
entityId ? (
<NlpValues entityId={entityId} />
) : (
<NlpEntity />
)
) : null}
</TabPanel>
</Grid>
</Paper>