Blame SOURCES/0001-storaged-Fix-unhandled-promise-rejection-when-cancel.patch

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