Fixed profile suspension

Closes #749

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-06-30 18:04:01 +02:00
parent 909a1030ef
commit 4c5eb58aa7
3 changed files with 12 additions and 2 deletions

View File

@@ -164,7 +164,7 @@ function doMerge<T = any>(
incoming: Array<T>,
args: Record<string, any> | null
): Array<T> {
const merged = existing ? existing.slice(0) : [];
const merged = existing && Array.isArray(existing) ? existing.slice(0) : [];
let res;
if (args) {
// Assume an page of 1 if args.page omitted.