diff --git a/src/renderers/Tabs.tsx b/src/renderers/Tabs.tsx index 8d3be54c5..b487768cf 100644 --- a/src/renderers/Tabs.tsx +++ b/src/renderers/Tabs.tsx @@ -335,7 +335,7 @@ export default class Tabs extends React.Component { localTabs = newLocalTabs; } - if (props.location && props.location.hash !== preProps.location.hash) { + if (props.location && preProps.location && props.location.hash !== preProps.location.hash) { const hash = props.location.hash.substring(1); if (!hash) { return;