fix logic
This commit is contained in:
parent
04f847042a
commit
6e993dd095
@ -218,7 +218,7 @@ export default {
|
|||||||
if (this.isGallery && this.listing[j].type === 'image') {
|
if (this.isGallery && this.listing[j].type === 'image') {
|
||||||
this.previousLink = this.listing[j].url
|
this.previousLink = this.listing[j].url
|
||||||
break
|
break
|
||||||
} else if (mediaTypes.includes(this.listing[j].type)) {
|
} else if (!this.isGallery && mediaTypes.includes(this.listing[j].type)) {
|
||||||
this.previousLink = this.listing[j].url
|
this.previousLink = this.listing[j].url
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
@ -228,7 +228,7 @@ export default {
|
|||||||
if (this.isGallery && this.listing[j].type === 'image') {
|
if (this.isGallery && this.listing[j].type === 'image') {
|
||||||
this.nextLink = this.listing[j].url
|
this.nextLink = this.listing[j].url
|
||||||
break
|
break
|
||||||
} else if (mediaTypes.includes(this.listing[j].type)) {
|
} else if (!this.isGallery && mediaTypes.includes(this.listing[j].type)) {
|
||||||
this.nextLink = this.listing[j].url
|
this.nextLink = this.listing[j].url
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user