Remove default contributors value in propsal component #93
@@ -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() {
|
||||||
@@ -28,8 +28,6 @@ export default Component.extend({
|
|||||||
description: null,
|
description: null,
|
||||||
url: null,
|
url: null,
|
||||||
});
|
});
|
||||||
|
|
||||||
this.set('contributors', []);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
|
|||||||
Reference in New Issue
Block a user