Skip to content

Commit

Permalink
Format main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cristineguadelupe committed Jan 19, 2024
1 parent f90f24b commit be4bdea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/assets/data_transform_cell/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,15 +753,13 @@ export async function init(ctx, payload) {
return data_options ? Object.keys(data_options) : [];
},
dataFrameColumnsWithTypes(data_options) {
const notAllowedTypes = ["list"]
const notAllowedTypes = ["list"];
const dataOptions = Object.fromEntries(
Object.entries(data_options).filter(([col, type]) =>
!notAllowedTypes.includes(type)
Object.entries(data_options).filter(
([col, type]) => !notAllowedTypes.includes(type)
)
);
const dataFrameColumns = dataOptions
? Object.entries(dataOptions)
: {};
const dataFrameColumns = dataOptions ? Object.entries(dataOptions) : {};
const columns = Array.from(dataFrameColumns, ([name, type]) => {
return { label: `${name} (${type})`, value: name };
});
Expand Down

0 comments on commit be4bdea

Please sign in to comment.