Peel templates off of dashboard
parent
2516f980f1
commit
02f68fc823
|
@ -24,6 +24,8 @@ const Dashboard = ({
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const {templates} = dashboard
|
||||||
|
|
||||||
const cells = dashboard.cells.map((cell) => {
|
const cells = dashboard.cells.map((cell) => {
|
||||||
const dashboardCell = {...cell}
|
const dashboardCell = {...cell}
|
||||||
dashboardCell.queries = dashboardCell.queries.map(({label, query, queryConfig, db}) =>
|
dashboardCell.queries = dashboardCell.queries.map(({label, query, queryConfig, db}) =>
|
||||||
|
@ -47,7 +49,7 @@ const Dashboard = ({
|
||||||
</div>
|
</div>
|
||||||
<div className="page-header__right">
|
<div className="page-header__right">
|
||||||
{
|
{
|
||||||
dashboard.templates.map(({id, values, selected}) => {
|
templates.map(({id, values, selected}) => {
|
||||||
const items = values ? values.map(value => ({text: value})) : []
|
const items = values ? values.map(value => ({text: value})) : []
|
||||||
return (
|
return (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
|
|
Loading…
Reference in New Issue