mirror of
https://github.com/mue/mue.git
synced 2026-07-15 04:53:48 +02:00
fix: background location info works properly on unsplash and pexels now
This commit is contained in:
@@ -178,8 +178,6 @@ export default class Background extends React.PureComponent {
|
||||
photographerURL = data.photographer_page;
|
||||
}
|
||||
|
||||
const location = data.location.replace(/[null]+/g, '');
|
||||
|
||||
this.setState({
|
||||
url: data.file,
|
||||
type: 'api',
|
||||
@@ -187,7 +185,7 @@ export default class Background extends React.PureComponent {
|
||||
photoInfo: {
|
||||
hidden: false,
|
||||
credit: credit,
|
||||
location: (location !== ' ' && location !== ', ') ? data.location : 'N/A',
|
||||
location: data.location,
|
||||
camera: data.camera,
|
||||
resolution: data.resolution,
|
||||
url: data.file,
|
||||
|
||||
Reference in New Issue
Block a user