Skip to content

Commit 2a5f88a

Browse files
committed
fix: fix config bug and btn style
1 parent 5e86208 commit 2a5f88a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.DS_Store

2 KB
Binary file not shown.

src/components/ConfigEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export class OpenAPIConfigEditor extends PureComponent<Props, State> {
158158
productConfigs.map((product, index) => (
159159
<ProductConfigItemEditor
160160
product={product}
161-
key={JSON.stringify(product)}
161+
key={`${JSON.stringify(product)}-${index}`}
162162
addProduct={() => this.addProduct()}
163163
remove={() => this.removeProduct(index)}
164164
index={index}

src/components/ProductConfigItemEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ const ProductConfigItemEditor = ({
9898
return (
9999
<div>
100100
<InlineFieldRow>
101-
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px'}} onClick={addProduct}>+</div>
102-
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px'}} onClick={remove}>-</div>
101+
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px', cursor: 'pointer'}} onClick={addProduct}>+</div>
102+
<div className='gf-form-label' style={{ width: '32px', padding: '0 8px 0 12px', cursor: 'pointer'}} onClick={remove}>-</div>
103103
<InlineField label="Product" labelWidth={8}>
104104
<Select
105105
width={33}

0 commit comments

Comments
 (0)