From 3133d56fe1bcf7ae0d50996a37a4031ab544c836 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Thu, 9 Sep 2021 13:18:04 +0200 Subject: [PATCH] fix: fix remove tast function --- public/script/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script/app.js b/public/script/app.js index d3b56af..60d71ab 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -383,7 +383,7 @@ angular $scope.removeToast = function (toast) { const index = $scope.toasts.indexOf(toast); - $scope.toasts = $scope.toasts.splice(index, index); + $scope.toasts.splice(index, 1); }; $scope.path = $location.url();