Skip to content

Commit

Permalink
ui: formBuilder - fix grid update methods
Browse files Browse the repository at this point in the history
Signed-off-by: Pamfilos Fokianos <[email protected]>
  • Loading branch information
pamfilos committed Nov 18, 2020
1 parent 8b96fef commit 4ff923c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CustomizeField extends React.Component {

gridChange = new_grid => {
let { uiSchema } = this.props;
uiSchema = uiSchema.toJS();
uiSchema = uiSchema ? uiSchema.toJS() : {};

let { "ui:options": uiOptions = {}, ...rest } = uiSchema;
let { grid = {}, ...restUIOptions } = uiOptions;
Expand All @@ -91,7 +91,7 @@ class CustomizeField extends React.Component {

gridColumnChange = new_gridColumn => {
let { uiSchema } = this.props;
uiSchema = uiSchema.toJS();
uiSchema = uiSchema ? uiSchema.toJS() : {};

let { "ui:options": uiOptions = {}, ...rest } = uiSchema;
let { grid = {}, ...restUIOptions } = uiOptions;
Expand All @@ -112,7 +112,7 @@ class CustomizeField extends React.Component {
if (SIZE_OPTIONS.indexOf(newSize) < 0) return;

let { uiSchema } = this.props;
uiSchema = uiSchema.toJS();
uiSchema = uiSchema ? uiSchema.toJS() : {};

let { "ui:options": uiOptions = {}, ...rest } = uiSchema;
let { size, ...restUIOptions } = uiOptions;
Expand All @@ -130,7 +130,7 @@ class CustomizeField extends React.Component {
if (["center", "start", "end"].indexOf(newAlign) < 0) return;

let { uiSchema } = this.props;
uiSchema = uiSchema.toJS();
uiSchema = uiSchema ? uiSchema.toJS() : {};

let { "ui:options": uiOptions = {}, ...rest } = uiSchema;
let { align, ...restUIOptions } = uiOptions;
Expand Down

0 comments on commit 4ff923c

Please sign in to comment.