mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NewPanelEdit: Fixed missing react keys in list error
This commit is contained in:
parent
3ec88a013f
commit
09bcdc1020
@ -184,11 +184,14 @@ export const TabsBarContent: React.FC<{
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
{tabSelections.map(item => {
|
||||
return (
|
||||
<Tab label={item.label} active={activeTab === item.value} onChangeTab={() => setActiveTab(item.value)} />
|
||||
);
|
||||
})}
|
||||
{tabSelections.map(item => (
|
||||
<Tab
|
||||
key={item.value}
|
||||
label={item.label}
|
||||
active={activeTab === item.value}
|
||||
onChangeTab={() => setActiveTab(item.value)}
|
||||
/>
|
||||
))}
|
||||
<div className="flex-grow-1" />
|
||||
</>
|
||||
)}
|
||||
@ -219,7 +222,7 @@ const tabSelections: Array<SelectableValue<string>> = [
|
||||
value: 'options',
|
||||
},
|
||||
{
|
||||
label: 'Data',
|
||||
label: 'Fields',
|
||||
value: 'defaults',
|
||||
},
|
||||
{
|
||||
|
@ -96,7 +96,6 @@ export const PanelOptionsTab: FC<Props> = ({
|
||||
}
|
||||
|
||||
elements.push(
|
||||
<>
|
||||
<OptionsGroup title="Panel links" key="panel links" defaultToClosed={true}>
|
||||
<DataLinksInlineEditor
|
||||
links={panel.links}
|
||||
@ -105,6 +104,9 @@ export const PanelOptionsTab: FC<Props> = ({
|
||||
data={[]}
|
||||
/>
|
||||
</OptionsGroup>
|
||||
);
|
||||
|
||||
elements.push(
|
||||
<OptionsGroup title="Panel repeats" key="panel repeats" defaultToClosed={true}>
|
||||
<Forms.Field
|
||||
label="Repeat by variable"
|
||||
@ -138,7 +140,6 @@ export const PanelOptionsTab: FC<Props> = ({
|
||||
</Forms.Field>
|
||||
)}
|
||||
</OptionsGroup>
|
||||
</>
|
||||
);
|
||||
|
||||
return <>{elements}</>;
|
||||
|
@ -20,6 +20,6 @@ export class TablePanel extends Component<Props> {
|
||||
return <div>No Table Data...</div>;
|
||||
}
|
||||
|
||||
return <Table height={height} width={width} data={data.series[0]} noHeader={!options.showHeader} />;
|
||||
return <Table height={height - 16} width={width} data={data.series[0]} noHeader={!options.showHeader} />;
|
||||
}
|
||||
}
|
||||
|
@ -15,7 +15,6 @@ export const plugin = new PanelPlugin<Options, CustomFieldConfig>(TablePanel)
|
||||
min: 20,
|
||||
max: 300,
|
||||
},
|
||||
defaultValue: 1,
|
||||
})
|
||||
.addSelect({
|
||||
id: 'displayMode',
|
||||
|
Loading…
Reference in New Issue
Block a user