Skip to content

Commit

Permalink
Update getFieldFormatted function parameters types
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomodarelli committed Sep 11, 2024
1 parent 4162918 commit f3eb084
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const parseData = <T = unknown>(resultsHits: SearchResponse<T>['hits']['h
return data;
};

export const getFieldFormatted = (rowIndex, columnId, indexPattern, rowsParsed) => {
export const getFieldFormatted = (rowIndex: number, columnId: string, indexPattern: IndexPattern, rowsParsed: ParseData[]) => {
const field = indexPattern.fields.find((field) => field.name === columnId);
let fieldValue = null;
if (columnId.includes('.')) {
Expand Down

0 comments on commit f3eb084

Please sign in to comment.