fix: search bar and add quote pack api support back

This commit is contained in:
David Ralph
2021-05-03 11:10:04 +01:00
parent 7628e769be
commit 1dc5e7375b
4 changed files with 15 additions and 4 deletions

View File

@@ -19,8 +19,9 @@ export default class Item extends React.PureComponent {
let warningHTML;
// For some reason it breaks sometimes so we use try/catch
console.log(this.props.data)
try {
if (this.props.content.content.data.quote_api) {
if (this.props.data.quote_api) {
warningHTML = (
<div className='productInformation'>
<ul>
@@ -64,6 +65,7 @@ export default class Item extends React.PureComponent {
<li>{this.props.data.author}</li>
</ul>
</div>
<br/>
{warningHTML}
</div>
<Modal closeTimeoutMS={100} onRequestClose={() => this.setState({ showLightbox: false })} isOpen={this.state.showLightbox} className='Modal lightboxmodal' overlayClassName='Overlay resetoverlay' ariaHideApp={false}>

View File

@@ -48,7 +48,8 @@ export default class Added extends React.PureComponent {
description: MarketplaceFunctions.urlParser(info.description.replace(/\n/g, '<br>')),
//updated: info.updated,
version: info.version,
icon: info.screenshot_url
icon: info.screenshot_url,
quote_api: info.quote_api || null
},
button: this.buttons.uninstall,
display: {