fix bug no url provided and blank tab is opened

main
alex 2024-06-03 20:20:16 +02:00
parent 8f81a0c0c7
commit 34749b39c5
1 changed files with 8 additions and 4 deletions

View File

@ -203,10 +203,14 @@ function App() {
productVariant={product.Variant} productVariant={product.Variant}
productCharacteristics={product.Characteristics} productCharacteristics={product.Characteristics}
rightComponent={ rightComponent={
product.Url === "" ? (
<></>
) : (
<RightOutlined <RightOutlined
style={{ fontSize: 18 }} style={{ fontSize: 18 }}
onClick={() => window.open(product.Url)} onClick={() => window.open(product.Url)}
/> />
)
} }
/> />
) )