Skip to content

Commit c146235

Browse files
committed
Fix unconformity labels
1 parent 5e59075 commit c146235

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/column-views/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ function Column(
235235
const {
236236
data,
237237
unitComponent = UnitComponent,
238-
unconformityLabels = false,
238+
unconformityLabels = true,
239239
showLabels = true,
240240
width = 300,
241241
columnWidth = 150,
@@ -277,10 +277,10 @@ function Column(
277277
"div.main-column",
278278
sectionGroups.map((group, i) => {
279279
const { section_id: id, units: data } = group;
280-
const lastGroup = sectionGroups[i - 1]?.[1];
280+
const lastGroup = sectionGroups[i - 1];
281281
return h([
282282
h.if(unconformityLabels)(Unconformity, {
283-
upperUnits: lastGroup,
283+
upperUnits: lastGroup?.units,
284284
lowerUnits: data,
285285
style: { width: showLabels ? columnWidth : width },
286286
}),

packages/column-views/stories/column.stories.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ export const Wide: Story = {
122122
b_age: 66,
123123
width: 500,
124124
columnWidth: 500,
125-
showLabelColumn: false,
126125
unitComponentProps: {
127126
nColumns: 2,
128127
},

0 commit comments

Comments
 (0)