From 867350ab0e2b7b1598cd153cf25b3df03be20b6b Mon Sep 17 00:00:00 2001 From: jessop Date: Fri, 17 Apr 2020 11:20:48 -0400 Subject: [PATCH] reset status on hidden types --- ui/component/txoList/view.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/component/txoList/view.jsx b/ui/component/txoList/view.jsx index e3585c91c..2b637c1c3 100644 --- a/ui/component/txoList/view.jsx +++ b/ui/component/txoList/view.jsx @@ -129,7 +129,7 @@ function TxoList(props: Props) { newUrlParams.set(TXO.SUB_TYPE, 'all'); } } - if (currentUrlParams.active) { + if (currentUrlParams.active && !hideStatus) { newUrlParams.set(TXO.ACTIVE, currentUrlParams.active); } else { newUrlParams.set(TXO.ACTIVE, 'all'); @@ -158,6 +158,7 @@ function TxoList(props: Props) { newUrlParams.set(TXO.PAGE_SIZE, currentUrlParams.pageSize); break; } + return `?${newUrlParams.toString()}`; }