From 4f9862de7131034f26587eb738c43d14bda47754 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 25 Feb 2020 15:12:54 +0100 Subject: [PATCH] Fix trim history when owned by a team --- www/common/common-ui-elements.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 6c581386d..2d439a909 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -455,7 +455,7 @@ define([ var team = priv.teams[id] || {}; if (team.viewer) { return; } if (data.owners.indexOf(team.edPublic) === -1) { return; } - owned = id; + owned = Number(id); return true; }); } @@ -750,7 +750,7 @@ define([ var team = priv.teams[id] || {}; if (team.viewer) { return; } if (data.owners.indexOf(team.edPublic) === -1) { return; } - owned = id; + owned = Number(id); return true; }); }