From f96adf750e17a958d8fcb4ad60719fe2aae63a8c Mon Sep 17 00:00:00 2001 From: Aurelien Benel Date: Sat, 27 Apr 2019 16:23:08 +0200 Subject: [PATCH] FIX: No manual refresh should be necessary on going back to the viewpoint list (#77). TODO: Still needs more refactoring to use React automatic update instead of ad hoc `_updateContent` method. --- src/sidebar/jsx/Display.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sidebar/jsx/Display.jsx b/src/sidebar/jsx/Display.jsx index 971c16a..8d08c8d 100644 --- a/src/sidebar/jsx/Display.jsx +++ b/src/sidebar/jsx/Display.jsx @@ -245,6 +245,7 @@ export default class Display extends React.Component { } _handleBack() { + this.props.update(this.props.tabId, true); this.setState({selectedViewpoint: null}); browser.contextMenus.remove("highlightmenu"); }