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

@@ -105,6 +105,8 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
)} )}
</Box> </Box>
{
getText ? (
<Box> <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' }}>
@@ -134,6 +136,8 @@ export const RightSidePanel = ({ pairForEdit }: RightSidePanelProps) => {
</Box> </Box>
))} ))}
</Box> </Box>
) : null
}
</Paper> </Paper>
); );
}; };