From c677fe87eab421da26a77aeed640c5176bd0ecd0 Mon Sep 17 00:00:00 2001 From: Collin Barrett Date: Sun, 18 Feb 2018 06:18:35 -0600 Subject: [PATCH] cleanup subsequent modal launches ref #248 --- src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx index 7264bb87a..5d14119fc 100644 --- a/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx +++ b/src/FilterLists.Web/ClientApp/components/ListDetailsModal.tsx @@ -14,8 +14,9 @@ export default class ListDetailsModal extends React.Component { } componentWillReceiveProps(nextProps: any) { - this.listId = nextProps.listId; + this.setState({ showModal: false }); this.setState({ filterListDetails: null }); + this.listId = nextProps.listId; } handleOpenModal() {