Removing validation on entity id type

parent cb5a8cc0
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
props: { props: {
zone: { type: String, required: true }, zone: { type: String, required: true },
entity: { type: String, required: true }, entity: { type: String, required: true },
entityId: { type: Number }, entityId: { default: null },
label: { type: String }, label: { type: String },
}, },
components: { components: {
...@@ -97,6 +97,9 @@ ...@@ -97,6 +97,9 @@
}, },
}, },
mounted() { mounted() {
if (this.entityId) {
this.fetchMedia();
}
this.eventName = `fileWasSelected${this.makeId()}${Math.floor(Math.random() * 999999)}`; this.eventName = `fileWasSelected${this.makeId()}${Math.floor(Math.random() * 999999)}`;
this.$events.listen(this.eventName, (mediaData) => { this.$events.listen(this.eventName, (mediaData) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment