Commit 1955c391 by Torkel Ödegaard Committed by GitHub

PanelEditor: Fixed switch tabs (#23859)

parent 51c19da9
...@@ -43,7 +43,7 @@ export const getPanelEditorTabs = memoizeOne((location: LocationState, plugin?: ...@@ -43,7 +43,7 @@ export const getPanelEditorTabs = memoizeOne((location: LocationState, plugin?:
}); });
} }
const activeTab = tabs.find(item => item.id === location.query.tab || defaultTab) ?? tabs[0]; const activeTab = tabs.find(item => item.id === (location.query.tab || defaultTab)) ?? tabs[0];
activeTab.active = true; activeTab.active = true;
return tabs; return tabs;
......
...@@ -125,6 +125,7 @@ export class TransformationsEditor extends React.PureComponent<Props> { ...@@ -125,6 +125,7 @@ export class TransformationsEditor extends React.PureComponent<Props> {
{standardTransformersRegistry.list().map(t => { {standardTransformersRegistry.list().map(t => {
return ( return (
<TransformationCard <TransformationCard
key={t.name}
title={t.name} title={t.name}
description={t.description} description={t.description}
actions={<Button>Select</Button>} actions={<Button>Select</Button>}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment