Skip to content

Commit

Permalink
bug autocomplete don't save new values
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslabbe committed Sep 27, 2016
1 parent 9caaf58 commit 5ee2d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/helpers/abe-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export default class Utils {
}else {
jsonPage[obj.key] = data
}
} else if (obj.prefill) {
} else if ((typeof jsonPage[obj.key] === 'undefined' || jsonPage[obj.key] === null) && obj.prefill) {
if (obj['prefill-quantity'] && obj['max-length']) {
jsonPage[obj.key] = data.slice(0, (obj['prefill-quantity'] > obj['max-length']) ? obj['max-length'] : obj['prefill-quantity'])
}else if (obj['prefill-quantity']) {
Expand Down

0 comments on commit 5ee2d95

Please sign in to comment.