Skip to content

Commit 8045d20

Browse files
committed
Hide parcel section if parcel is empty. Closes #51
1 parent 16b84b0 commit 8045d20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/pages/Block/Block.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,12 @@ class Block extends React.Component<Props, State> {
213213
</div>
214214
</Col>
215215
</Row>
216-
<Row className="mt-large">
216+
{ block.parcels.length > 0 && <Row className="mt-large">
217217
<Col lg="9">
218218
<ParcelList parcels={block.parcels} totalCount={block.parcels.length} />
219219
</Col>
220220
</Row>
221+
}
221222
</Container>
222223
);
223224
}

0 commit comments

Comments
 (0)