Commit cec1cfb9 authored by Pierre Marchand's avatar Pierre Marchand

[client/query] fixed missing key in table source

parent f71d435f
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -12,7 +12,7 @@ import {
loadMaps
} from './events/app';
import splash from './components/splash';
import { getLayout, getAppName } from './queries/app';
import { getLayout } from './queries/app';
import { loadRoute, navigateIndex } from './events/route';
import { queryHeaderWhere, queryHeaderSelect } from './components/header';
import landing from './components/landing';
......
......@@ -3,7 +3,8 @@ import {
TableDataRow,
TableDataType,
tableQueries,
TableDataCell
TableDataCell,
TableSource
} from 'sdi/components/table';
import {
nameToTypeName,
......@@ -215,7 +216,8 @@ const getResultsKeys = () => getSelectQuery().map(keyFromSelect);
const getResultsTypes = (): TableDataType[] =>
getResultsKeys().map<TableDataType>(_k => 'string'); // TODO real types
export const getSource = () => ({
export const getSource = (): TableSource => ({
kind: 'local',
data: getResultsData(),
keys: ['id'].concat(getResultsKeys()),
types: ['number' as TableDataType].concat(getResultsTypes())
......
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