Skip to content

Commit

Permalink
fix: dc meta table swap cols
Browse files Browse the repository at this point in the history
  • Loading branch information
irfancoder committed Jan 9, 2023
1 parent 3c0e953 commit 9190c1f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions data-catalogue/show.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,23 @@ const CatalogueShow: FunctionComponent<CatalogueShowProps> = ({
}, []);

const tableConfig: TableConfig[] = [
{
id: "variable",
header: t("catalogue.meta_variable"),
accessorFn({ variable, data_type }) {
return `${variable}//${data_type ? `(${data_type})` : ""}`;
},
cell: (value: any) => {
const [variable, data_type] = value.getValue().split("//");
return (
<p className="font-mono text-sm">
{variable} {data_type}
</p>
);
},
className: "text-left",
enableSorting: false,
},
{
id: "variable_name",
header: t("catalogue.meta_variable_name"),
Expand All @@ -163,23 +180,6 @@ const CatalogueShow: FunctionComponent<CatalogueShowProps> = ({
);
},
},
{
id: "variable",
header: t("catalogue.meta_variable"),
accessorFn({ variable, data_type }) {
return `${variable}//${data_type ? `(${data_type})` : ""}`;
},
cell: (value: any) => {
const [variable, data_type] = value.getValue().split("//");
return (
<p className="font-mono text-sm">
{variable} {data_type}
</p>
);
},
className: "text-left",
enableSorting: false,
},
{
id: "definition",
header: t("catalogue.meta_definition"),
Expand Down

0 comments on commit 9190c1f

Please sign in to comment.