mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(frontend): resolve nlp page select tab issue
This commit is contained in:
parent
e3094742a2
commit
95e1decc55
@ -116,12 +116,18 @@ export const Nlp = ({
|
|||||||
{/* NLP SAMPLES */}
|
{/* NLP SAMPLES */}
|
||||||
<Grid sx={{ padding: "20px" }}>
|
<Grid sx={{ padding: "20px" }}>
|
||||||
<TabPanel value={selectedTab} index="sample">
|
<TabPanel value={selectedTab} index="sample">
|
||||||
<NlpSample />
|
{selectedTab === "sample" ? <NlpSample /> : null}
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
|
|
||||||
{/* NLP ENTITIES */}
|
{/* NLP ENTITIES */}
|
||||||
<TabPanel value={selectedTab} index="entity">
|
<TabPanel value={selectedTab} index="entity">
|
||||||
{entityId ? <NlpValues entityId={entityId} /> : <NlpEntity />}
|
{selectedTab === "entity" ? (
|
||||||
|
entityId ? (
|
||||||
|
<NlpValues entityId={entityId} />
|
||||||
|
) : (
|
||||||
|
<NlpEntity />
|
||||||
|
)
|
||||||
|
) : null}
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Paper>
|
</Paper>
|
||||||
|
Loading…
Reference in New Issue
Block a user