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}
|
||||
productCharacteristics={product.Characteristics}
|
||||
rightComponent={
|
||||
<RightOutlined
|
||||
style={{ fontSize: 18 }}
|
||||
onClick={() => window.open(product.Url)}
|
||||
/>
|
||||
product.Url === "" ? (
|
||||
<></>
|
||||
) : (
|
||||
<RightOutlined
|
||||
style={{ fontSize: 18 }}
|
||||
onClick={() => window.open(product.Url)}
|
||||
/>
|
||||
)
|
||||
}
|
||||
/>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue