Skip to content

Commit

Permalink
(fix) prexpand rows with fields, change empty view size
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilShahi committed Aug 26, 2022
1 parent 2c890f4 commit 493cbfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/components/Endpoint/DataFieldList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ const DataFieldList: React.FC<DataFieldListProps> = React.memo(
conditionalRowStyles={conditionalStyles}
noDataComponent={
<EmptyView
minH="100px"
text={`No ${DATA_SECTION_TO_LABEL_MAP[data.section]} fields.`}
notRounded
/>
Expand All @@ -289,6 +290,7 @@ const DataFieldList: React.FC<DataFieldListProps> = React.memo(
style={rowStyles}
customStyles={getCustomStyles(colorMode.colorMode)}
expandableRowsComponent={(props) => expandedComponent(props.data)}
expandableRowExpanded={(row) => row.dataFields?.length > 0}
/>
);

Expand Down

0 comments on commit 493cbfa

Please sign in to comment.