mirror of
https://github.com/transloadit/uppy.git
synced 2026-01-23 02:25:07 +00:00
fix: update instagram nextPagePath after every fetch
This commit is contained in:
parent
f63b72a460
commit
25e31e5f26
1 changed files with 2 additions and 2 deletions
|
|
@ -81,6 +81,7 @@ module.exports = class ProviderView {
|
|||
}
|
||||
|
||||
_updateFilesAndFolders (res, files, folders) {
|
||||
this.nextPagePath = res.nextPagePath
|
||||
res.items.forEach((item) => {
|
||||
if (item.isFolder) {
|
||||
folders.push(item)
|
||||
|
|
@ -128,7 +129,6 @@ module.exports = class ProviderView {
|
|||
}
|
||||
|
||||
this.username = this.username ? this.username : res.username
|
||||
this.nextPagePath = res.nextPagePath
|
||||
this._updateFilesAndFolders(res, files, folders)
|
||||
this.plugin.setPluginState({ directories: updatedDirectories })
|
||||
},
|
||||
|
|
@ -463,7 +463,7 @@ module.exports = class ProviderView {
|
|||
|
||||
handleScroll (e) {
|
||||
const scrollPos = e.target.scrollHeight - (e.target.scrollTop + e.target.offsetHeight)
|
||||
const path = this.nextPagePath ? this.nextPagePath : null
|
||||
const path = this.nextPagePath || null
|
||||
|
||||
if (scrollPos < 50 && path && !this._isHandlingScroll) {
|
||||
this.provider.list(path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue