From ea13b4069860bfd65378c10afc4aaaf803688f10 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Feb 2021 12:41:22 +0100 Subject: [PATCH 1/2] Fix kanban undefined --- www/kanban/inner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/kanban/inner.js b/www/kanban/inner.js index 8dea40415..8c00ae3dc 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -149,7 +149,7 @@ define([ _updateBoards(framework, kanban, boards); return; } - _updateBoardsThrottle(); + _updateBoardsThrottle(framework, kanban, boards); }; var onRemoteChange = Util.mkEvent(); From f8add72f63d30d7a21246c0d5b8d2a615189bb59 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 3 Feb 2021 12:52:54 +0100 Subject: [PATCH 2/2] Increase throttle value --- www/kanban/inner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/kanban/inner.js b/www/kanban/inner.js index 8c00ae3dc..8344a4b26 100644 --- a/www/kanban/inner.js +++ b/www/kanban/inner.js @@ -143,7 +143,7 @@ define([ kanban.inEditMode = false; addEditItemButton(framework, kanban); }; - var _updateBoardsThrottle = Util.throttle(_updateBoards, 500); + var _updateBoardsThrottle = Util.throttle(_updateBoards, 1000); var updateBoards = function (framework, kanban, boards) { if ((now() - _lastUpdate) > 5000) { _updateBoards(framework, kanban, boards); @@ -859,7 +859,7 @@ define([ // If the rendering has changed, update the value and redraw kanban.options.tagsAnd = tagsAnd; _tagsAnd = tagsAnd; - updateBoards(kanban.options.boards); + updateBoards(framework, kanban, kanban.options.boards); }); if (migrated) { framework.localChange(); }