Skip to content

Commit

Permalink
refactor: rename variable for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Sep 1, 2023
1 parent 52093fc commit 48bfa52
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ export const ITEM_ATTRIBUTE_HORIZONTAL = 'HORIZONTAL'

// Transform from backend model to store.ui format
export const getUiFromVisualization = (vis, currentState = {}) => {
const type = vis.type || defaultVisType
const visType = vis.type || defaultVisType
const options = getOptionsFromVisualization(vis)

return {
...currentState,
type,
type: visType,
options,
disabledOptions: getDisabledOptions({ visType: type, options }),
disabledOptions: getDisabledOptions({ visType, options }),
layout: layoutGetAxisIdDimensionIdsObject(vis),
itemsByDimension: layoutGetDimensionIdItemIdsObject(vis),
parentGraphMap:
Expand Down

0 comments on commit 48bfa52

Please sign in to comment.