Skip to content

Commit

Permalink
snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
maxott committed Sep 13, 2019
1 parent aa43c27 commit 65ef062
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,5 @@
"loose-envify"
]
},
"gitHead": "bc0d21f2bde1990e8234616f086fd672a9fc00f0"
"gitHead": "aa43c27ff6344d6ead75a83e1d23ff69a7f4feb4"
}
2 changes: 1 addition & 1 deletion packages/material/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@
"loose-envify"
]
},
"gitHead": "bc0d21f2bde1990e8234616f086fd672a9fc00f0"
"gitHead": "aa43c27ff6344d6ead75a83e1d23ff69a7f4feb4"
}
2 changes: 1 addition & 1 deletion packages/material/src/card/form/form.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const PiForm = styled(({
options = [], help,
grid = { xs: 12, sm: 12 },
} = r;
const v = values[id] || defValue;
const v = values[id] ? values[id] : defValue;
return (
<Grid key={id} required={required} item {...grid}>
<FormControl className={classes.selectControl} required={required}>
Expand Down
7 changes: 3 additions & 4 deletions packages/material/src/card/form/form.reducers.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import { update } from '@pihanga/core';
import { ACTION_TYPES } from './form.actions';

export default (registerReducer) => {

// eslint-disable-next-line arrow-body-style
registerReducer(ACTION_TYPES.VALUE_CHANGED, (state, action) => {
return update(state, [ 'pihanga', action.id, 'values', action.fieldID ], action.value);
return update(state, ['pihanga', action.id, 'values', action.fieldID], action.value);
});
}

};
2 changes: 1 addition & 1 deletion packages/recharts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@
"x-prepublishOnly": "npm run build",
"x-prepublish": "yarn run lint && yarn run test && yarn run build"
},
"gitHead": "bc0d21f2bde1990e8234616f086fd672a9fc00f0"
"gitHead": "aa43c27ff6344d6ead75a83e1d23ff69a7f4feb4"
}

0 comments on commit 65ef062

Please sign in to comment.