From 984922d04657c34ab41f7bfd8418ce113c8a1c0c Mon Sep 17 00:00:00 2001 From: CHaBou Date: Thu, 22 Mar 2018 20:59:07 +0100 Subject: [PATCH] Fix Term theme hot reloading (#2771) --- lib/components/term.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/term.js b/lib/components/term.js index 32005691..efde66be 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -240,9 +240,9 @@ export default class Term extends React.PureComponent { // Do we need to update theme? const shouldUpdateTheme = !this.termOptions.theme || - Object.keys(nextTermOptions.theme).some(option => { - nextTermOptions.theme[option] !== this.termOptions.theme[option]; - }); + Object.keys(nextTermOptions.theme).some( + option => nextTermOptions.theme[option] !== this.termOptions.theme[option] + ); if (shouldUpdateTheme) { this.term.setOption('theme', nextTermOptions.theme); }