fix: display browserSteps only if getText is true

This commit is contained in:
karishmas6
2024-08-06 02:11:52 +05:30
parent 49be673d6d
commit 959a498cf8

View File

@@ -104,8 +104,10 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
</Box> </Box>
)} )}
</Box> </Box>
<Box> {
getText ? (
<Box>
{browserSteps.map(step => ( {browserSteps.map(step => (
<Box key={step.id} sx={{ boxShadow: 5, padding: '10px', margin: '10px', borderRadius: '4px' }}> <Box key={step.id} sx={{ boxShadow: 5, padding: '10px', margin: '10px', borderRadius: '4px' }}>
<TextField <TextField
@@ -134,6 +136,8 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
</Box> </Box>
))} ))}
</Box> </Box>
) : null
}
</Paper> </Paper>
); );
}; };