Add empty array as default for contributors list
This commit is contained in:
@@ -5,7 +5,7 @@ import { and, notEmpty } from '@ember/object/computed';
|
|||||||
export default Component.extend({
|
export default Component.extend({
|
||||||
|
|
||||||
attributes: null,
|
attributes: null,
|
||||||
contributors: null,
|
contributors: Object.freeze([]),
|
||||||
|
|
||||||
isValidContributor: notEmpty('contributorId'),
|
isValidContributor: notEmpty('contributorId'),
|
||||||
isValidAmount: computed('amount', function() {
|
isValidAmount: computed('amount', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user