Fix scene selection not working (#373)

This commit is contained in:
WithoutPants 2020-02-19 07:56:46 +11:00 committed by GitHub
parent bf49a23df8
commit 8d57629af3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -321,12 +321,12 @@ export class ListHook {
let thisIndex = -1;
if (!!lastClickedId) {
startIndex = filterListImpl.getItems(result).findIndex((item) => {
startIndex = filterListImpl.getItems(result.data).findIndex((item) => {
return item.id === lastClickedId;
});
}
thisIndex = filterListImpl.getItems(result).findIndex((item) => {
thisIndex = filterListImpl.getItems(result.data).findIndex((item) => {
return item.id === id;
});
@ -340,7 +340,7 @@ export class ListHook {
endIndex = tmp;
}
const subset = filterListImpl.getItems(result).slice(startIndex, endIndex + 1);
const subset = filterListImpl.getItems(result.data).slice(startIndex, endIndex + 1);
const newSelectedIds : Set<string> = new Set();
subset.forEach((item) => {
@ -352,7 +352,7 @@ export class ListHook {
function onSelectAll() {
const newSelectedIds : Set<string> = new Set();
filterListImpl.getItems(result).forEach((item) => {
filterListImpl.getItems(result.data).forEach((item) => {
newSelectedIds.add(item.id);
});