mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
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:
commit
03559d974f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user