mirror of
https://github.com/mue/mue.git
synced 2026-07-23 08:47:19 +02:00
fix: search bar and add quote pack api support back
This commit is contained in:
@@ -73,8 +73,8 @@ export default class Quote extends React.PureComponent {
|
||||
try {
|
||||
const data = await (await fetch(quotePackAPI.url)).json();
|
||||
return this.setState({
|
||||
quote: '"' + data.quote + '"',
|
||||
author: quotePackAPI.author || data.author,
|
||||
quote: '"' + data[quotePackAPI.quote] + '"',
|
||||
author: data[quotePackAPI.author] || quotePackAPI.author,
|
||||
type: 'quote_pack'
|
||||
});
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user