fix bug no url provided and blank tab is opened
parent
8f81a0c0c7
commit
34749b39c5
12
src/App.js
12
src/App.js
|
@ -203,10 +203,14 @@ function App() {
|
||||||
productVariant={product.Variant}
|
productVariant={product.Variant}
|
||||||
productCharacteristics={product.Characteristics}
|
productCharacteristics={product.Characteristics}
|
||||||
rightComponent={
|
rightComponent={
|
||||||
<RightOutlined
|
product.Url === "" ? (
|
||||||
style={{ fontSize: 18 }}
|
<></>
|
||||||
onClick={() => window.open(product.Url)}
|
) : (
|
||||||
/>
|
<RightOutlined
|
||||||
|
style={{ fontSize: 18 }}
|
||||||
|
onClick={() => window.open(product.Url)}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue