From 5f757fd21fcda7cf778829f700e16753f1bd086e Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 28 Feb 2022 14:34:57 +0530 Subject: [PATCH] possible fix for pads being duplicated in team drives --- www/common/outer/async-store.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index 729793039..0f6db4db3 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -1172,7 +1172,7 @@ define([ var sendTo = []; var inMyDrive; getAllStores().forEach(function (s) { - if (data.teamId && s.id !== data.teamId) { return; } + if (data.teamId && Number(s.id) !== data.teamId) { return; } if (storeLocally && s.id) { return; } // If this is an edit link but we don't have edit rights, this entry is not useful @@ -1189,7 +1189,7 @@ define([ // we need to make a copy of this pad in our drive. We're going to check // if the pad is stored in our MAIN drive. // We only need to check this if the current manager is the target (data.teamId) - if (data.teamId === s.id) { + if (data.teamId === Number(s.id)) { inMyDrive = res.some(function (obj) { return !obj.fId; });