Skip to content

Commit 21f2b72

Browse files
committed
fix merge
1 parent 5e63ca6 commit 21f2b72

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/compass-data-modeling/src/components/new-diagram-form.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,17 @@ const FormStepContainer: React.FunctionComponent<{
9292
<ModalFooter className={footerStyles}>
9393
<Body className={footerTextStyles}>{footerText}</Body>
9494
<div className={footerActionsStyles}>
95-
<Button onClick={onPreviousClick}>{previousLabel}</Button>
95+
<Button onClick={onPreviousClick} key={`${step}-previous`}>
96+
{previousLabel}
97+
</Button>
9698
<Button
9799
onClick={onNextClick}
98100
disabled={isNextDisabled}
99101
isLoading={isLoading}
100102
data-testid="new-diagram-confirm-button"
101103
variant="primary"
102104
loadingIndicator={<SpinLoader />}
105+
key={`${step}-next`}
103106
>
104107
{nextLabel}
105108
</Button>
@@ -143,7 +146,7 @@ function SelectCollectionsStep({
143146
}}
144147
/>
145148
<SelectList
146-
className={selectListStyles}
149+
className={SelectListStyles}
147150
items={filteredCollections.map((collName) => {
148151
return {
149152
id: collName,

0 commit comments

Comments
 (0)