Skip to content

Commit afbb329

Browse files
committed
Merge branch 'lex-dropdown' of https://github.com/UW-Macrostrat/web-components into lex-dropdown
2 parents cab1916 + 0b440d7 commit afbb329

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/form-components/src/components/lex-selection/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export const LexSelection = ({
108108
}
109109
let item = null;
110110
if (items.length != 0) {
111-
item = items.filter(
112-
(item) => item.id == parseInt(value),
113-
)[0];
111+
item = items.filter((item) => item.id == parseInt(value))[0];
114112
}
115113

116114
return item;
@@ -184,4 +182,4 @@ function LexButton({ item, intent, setActive, placeholder }) {
184182
},
185183
[],
186184
);
187-
}
185+
}

packages/form-components/src/components/lex-selection/lex-selection.stories.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export function Intervals() {
2929
});
3030
}
3131

32-
3332
function useIntervals() {
3433
return useAPIResult(
3534
"https://dev.macrostrat.org/api/pg/intervals?select=id,color:interval_color,name:interval_name",
@@ -52,7 +51,6 @@ export function StratNames() {
5251
});
5352
}
5453

55-
5654
function useStratNames() {
5755
return useAPIResult(
5856
"https://dev.macrostrat.org/api/pg/strat_names?select=id,name:strat_name",

0 commit comments

Comments
 (0)