Skip to content

Commit

Permalink
updated type of transformationResult, fixed transformation type
Browse files Browse the repository at this point in the history
  • Loading branch information
punith300i committed Nov 3, 2023
1 parent d315f97 commit 4ba971a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions www/src/models/transformation/TransformationResult.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface TransformationResult {
path: number;
value: string;
ok: string | boolean;
error: string;
ok: any[] | any | undefined;
error: string | undefined;
}
2 changes: 1 addition & 1 deletion www/src/pages/table/forms/TransformationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,6 @@ function transformationResult2Row(tbl: TransformationResult) {
key: tbl.path,
row_id: tbl.path + 1,
previous_value: tbl.value,
result: tbl.ok !== undefined ? tbl.ok : tbl.error.trim(),
result: tbl.ok !== undefined ? tbl.ok : tbl.error!.trim(),
};
}

0 comments on commit 4ba971a

Please sign in to comment.