From dbd5de41f990c71e433d7d32446d3a5857a52b8a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 13 Jul 2018 12:39:23 +0200 Subject: [PATCH 1/2] storaged: Fix unhandled promise rejection when cancelling NFS install dialog Cherry-picked from master commit 85183f910e. --- pkg/storaged/optional-panel.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/storaged/optional-panel.jsx b/pkg/storaged/optional-panel.jsx index 5604448..147cbb1 100644 --- a/pkg/storaged/optional-panel.jsx +++ b/pkg/storaged/optional-panel.jsx @@ -81,7 +81,8 @@ export class OptionalPanel extends React.Component { self.setState({ just_installed: "just-installed" }); window.setTimeout(() => { self.setState({ just_installed: "just-installed faded" }); }, 4000); - }); + }, + () => null /* ignore cancel */); } var heading_right = null; -- 2.17.1