From 2b6310134bf14beefd60805e922f16c5b129af90 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 15 Nov 2021 12:56:45 +0100 Subject: [PATCH] Fix TypeError in migrate-user-object (#829) --- www/common/migrate-user-object.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/migrate-user-object.js b/www/common/migrate-user-object.js index 000744cc9..1e532ebc9 100644 --- a/www/common/migrate-user-object.js +++ b/www/common/migrate-user-object.js @@ -111,7 +111,7 @@ define([ } }).nThen(function (waitFor) { var addChannelId = function () { - var data = userObject.drive.filesData; + var data = userObject.drive.filesData || {}; var el, parsed; var n = nThen(function () {}); var padsLength = Object.keys(data).length;