From fcddbd5df64c5c4aeb6efc68da5a32127f3c89b6 Mon Sep 17 00:00:00 2001 From: Kyle Doherty <kyle.l.doherty@gmail.com> Date: Wed, 6 Jun 2018 15:53:03 -0700 Subject: [PATCH] individual archive action --- frontend/src/metabase/components/EntityItem.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/metabase/components/EntityItem.jsx b/frontend/src/metabase/components/EntityItem.jsx index ede6ba6f673..62d6a8918a0 100644 --- a/frontend/src/metabase/components/EntityItem.jsx +++ b/frontend/src/metabase/components/EntityItem.jsx @@ -96,7 +96,12 @@ const EntityItem = ({ { title: t`Archive`, icon: "archive", - action: () => item.setArchived(item), + action: () => { + try { + item.setArchived(true) + } finally { + } + } }, ]} /> -- GitLab