Skip to content

Commit

Permalink
Removing validation on entity id type
Browse files Browse the repository at this point in the history
  • Loading branch information
nWidart committed Oct 13, 2017
1 parent cb5a8cc commit f6e8290
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Modules/Media/Assets/js/components/SingleMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
props: {
zone: { type: String, required: true },
entity: { type: String, required: true },
entityId: { type: Number },
entityId: { default: null },
label: { type: String },
},
components: {
Expand Down Expand Up @@ -97,6 +97,9 @@
},
},
mounted() {
if (this.entityId) {
this.fetchMedia();
}
this.eventName = `fileWasSelected${this.makeId()}${Math.floor(Math.random() * 999999)}`;
this.$events.listen(this.eventName, (mediaData) => {
Expand Down

0 comments on commit f6e8290

Please sign in to comment.