From 890539009b07e11869c0f4c877f6fcacdca4a1d9 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 7 Aug 2019 15:49:22 -0300 Subject: [PATCH] [FIX] Custom emoji limit table scroll (#15119) --- app/emoji-custom/client/admin/adminEmoji.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/emoji-custom/client/admin/adminEmoji.js b/app/emoji-custom/client/admin/adminEmoji.js index 7a46f4c9cb0c..8f1ba6d8f3ba 100644 --- a/app/emoji-custom/client/admin/adminEmoji.js +++ b/app/emoji-custom/client/admin/adminEmoji.js @@ -48,7 +48,7 @@ Template.adminEmoji.helpers({ if ((currentTarget.offsetHeight + currentTarget.scrollTop) < (currentTarget.scrollHeight - 100)) { return; } - if (Template.instance().limit.get() > Template.instance().customemoji().length) { + if (instance.limit.get() > instance.customemoji().length) { return false; } instance.limit.set(instance.limit.get() + 50);