Skip to content

Commit

Permalink
Fixed minor PR issues and removed redundant code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
punith300i committed Oct 30, 2023
1 parent 86440a3 commit d4c2767
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion www/src/pages/table/MenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export const MenuBar = observer(
}

const sm = semanticmodel.sms[semanticmodel.index];
const tableId = routes.table.useURLParams()!.tableId;
const funcs = {
saveModel: () => {
if (SemanticModel.isDraft(sm)) {
Expand Down
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 @@ -220,12 +220,12 @@ export const TransformationForm = withStyles(styles)(
<Table
style={{ border: "1px solid #ccc" }}
columns={columns}
dataSource={result.map(transformationResult2row)}
dataSource={result.map(transformationResult2Row)}
pagination={{ pageSize: 4 }}
/>
) : result != undefined ? (
<Tag style={{ padding: 0 }} color={"volcano"}>
<pre style={{ margin: "5px" }}>{result}</pre>
<pre style={{ margin: 5 }}>{result}</pre>
</Tag>
) : (
<></>
Expand Down Expand Up @@ -279,7 +279,7 @@ export const CustomEditor = ({
);
};

function transformationResult2row(tbl: TransformationResult) {
function transformationResult2Row(tbl: TransformationResult) {
return {
key: tbl.path,
row_id: tbl.path + 1,
Expand Down

0 comments on commit d4c2767

Please sign in to comment.