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 */}
|
||||
<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