Skip to content

Commit

Permalink
removed unused imports , styles for transformation form
Browse files Browse the repository at this point in the history
  • Loading branch information
punith300i committed Oct 31, 2023
1 parent c47e5fc commit 5285aa6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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;
ok: string | boolean;
error: string;
}
6 changes: 3 additions & 3 deletions www/src/pages/table/forms/TransformationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from "../../../models";

export interface TransformationFormProps {
type: string;
type: "transformation";
table: TableModel;
}

Expand Down Expand Up @@ -235,7 +235,7 @@ export const TransformationForm = observer(
dataSource={result.map(transformationResult2Row)}
pagination={{ pageSize: 4 }}
/>
) : result != undefined ? (
) : result !== undefined ? (
<Tag style={{ padding: 0 }} color={"volcano"}>
<pre style={{ margin: 5 }}>{result}</pre>
</Tag>
Expand Down Expand Up @@ -274,6 +274,6 @@ function transformationResult2Row(tbl: TransformationResult) {
key: tbl.path,
row_id: tbl.path + 1,
previous_value: tbl.value,
result: tbl.ok !== undefined ? tbl.ok.toString() : tbl.error.trim(),
result: tbl.ok !== undefined ? tbl.ok : tbl.error.trim(),
};
}
1 change: 0 additions & 1 deletion www/src/pages/table/forms/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ interface TypedNodeFormProps extends NodeFormProps {
}

interface TypedTransformationFormProps extends TransformationFormProps {
type: "transformation";
id?: number;
table: Table;
}
Expand Down

0 comments on commit 5285aa6

Please sign in to comment.