Skip to content

Commit

Permalink
Merge e96688f into 0edf124
Browse files Browse the repository at this point in the history
  • Loading branch information
tienvx committed Oct 3, 2021
2 parents 0edf124 + e96688f commit f4b5930
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/Resources/assets/dist/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var _default = /*#__PURE__*/function (_Controller) {
value: function connect() {
var options = {
call_post_add_on_init: false,
prototype_name: this.prototypeNameValue
prototype_name: this.prototypeNameValue || '__name__'
};

if (this.allowAddValue) {
Expand Down Expand Up @@ -97,8 +97,5 @@ _defineProperty(_default, "values", {
allowDelete: Boolean,
allowMoveUp: Boolean,
allowMoveDown: Boolean,
prototypeName: {
type: String,
"default": '__name__'
}
prototypeName: String
});
2 changes: 1 addition & 1 deletion src/Resources/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"peerDependencies": {
"stimulus": "^2.0.0",
"symfony-collection-js": "^4.2.0-js-only"
"symfony-collection-js": "4.2.0-js-only"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/assets/src/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export default class extends Controller {
allowDelete: Boolean,
allowMoveUp: Boolean,
allowMoveDown: Boolean,
prototypeName: { type: String, default: '__name__' }
prototypeName: String
};

connect() {
let options = {
call_post_add_on_init: false,
prototype_name: this.prototypeNameValue,
prototype_name: this.prototypeNameValue || '__name__',
};
if (this.allowAddValue) {
options = {
Expand Down

0 comments on commit f4b5930

Please sign in to comment.