From 4cc4e9161ece857be40f0138871abd36596267f7 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 13 Jul 2018 12:39:23 +0200 Subject: [PATCH] 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 5604448851d5..147cbb18c192 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;