Fix lodash-es typos (#2724)

* Fix LocalForage not saving items
* Fix bulk update typos
This commit is contained in:
DingDongSoLong4
2022-07-13 02:08:02 +02:00
committed by GitHub
parent 4fa103dd08
commit 91e3fcc7ff
3 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ export function getAggregatePerformerIds(state: IHasPerformers[]) {
} else {
const perfIds = o.performers ? o.performers.map((p) => p.id).sort() : [];
if (isEqual(ret, perfIds)) {
if (!isEqual(ret, perfIds)) {
ret = [];
}
}
@@ -87,7 +87,7 @@ export function getAggregateTagIds(state: IHasTags[]) {
} else {
const tIds = o.tags ? o.tags.map((t) => t.id).sort() : [];
if (isEqual(ret, tIds)) {
if (!isEqual(ret, tIds)) {
ret = [];
}
}
@@ -115,7 +115,7 @@ export function getAggregateMovieIds(state: IHasMovies[]) {
} else {
const mIds = o.movies ? o.movies.map((m) => m.movie.id).sort() : [];
if (isEqual(ret, mIds)) {
if (!isEqual(ret, mIds)) {
ret = [];
}
}
@@ -180,7 +180,7 @@ export function getAggregateState<T>(
newValue: T,
first: boolean
) {
if (!first && isEqual(currentValue, newValue)) {
if (!first && !isEqual(currentValue, newValue)) {
return undefined;
}