Skip to content

Commit

Permalink
ts changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
  • Loading branch information
igorDykhta committed Feb 19, 2025
1 parent d461bb8 commit 61e9ee8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/schemas/src/dataset-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ const getAllDataForSaving = (dataContainer: DataContainerInterface): any[][] =>
allData.forEach(row => {
row[columnIndex] = new Date(row[columnIndex]).toISOString();
});
} else if (field.type === ALL_FIELD_TYPES.geoarrow) {
} else if (field?.type === ALL_FIELD_TYPES.geoarrow) {
const formatter = FIELD_DISPLAY_FORMAT[ALL_FIELD_TYPES.geoarrow];
allData.forEach(row => {
row[columnIndex] = formatter(row[columnIndex], field as any);
row[columnIndex] = formatter(row[columnIndex], field);
});
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/utils/src/data-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import {
TooltipFormat
} from '@kepler.gl/constants';
import {notNullorUndefined} from '@kepler.gl/common-utils';
import {Field, Millisecond} from '@kepler.gl/types';
import {Field, Millisecond, ProtoDatasetField} from '@kepler.gl/types';

import {snapToMarks} from './plot';
import {isPlainObject} from './utils';

export type FieldFormatter = (value: any, field?: Field) => string;
export type FieldFormatter = (value: any, field?: ProtoDatasetField) => string;

// We need threat latitude differently otherwise mercator project view throws
// a projection matrix error
Expand Down

0 comments on commit 61e9ee8

Please sign in to comment.