fix(web): previous/next asset navigation (#3107)

* fix(web): previous/next asset navigation

* Apply suggestions from code review

Co-authored-by: Thomas <9749173+uhthomas@users.noreply.github.com>

* Call setViewingAsset once

* Make code more readable

* Avoid recursive call

* Simplify return statement

* Set position of the bucket to Unknown

---------

Co-authored-by: Thomas <9749173+uhthomas@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Sergey Kondrikov
2023-07-05 23:24:23 +03:00
committed by GitHub
parent 814030be77
commit 37edef834e
3 changed files with 71 additions and 20 deletions

View File

@@ -46,6 +46,11 @@ export class AssetGridState {
*/
assets: AssetResponseDto[] = [];
/**
* Total assets that have been loaded along with additional data
*/
loadedAssets: Record<string, number> = {};
/**
* User that owns assets
*/