diff --git a/src/App.vue b/src/App.vue index 996a773d..4d758095 100644 --- a/src/App.vue +++ b/src/App.vue @@ -141,7 +141,7 @@ export default class App extends Mixins(BaseMixin) { @Watch('current_file') current_fileChanged(newVal: string) { - this.$socket.emit("server.files.metadata", { filename: newVal }, { action: "files/getMetadataCurrentFile" }); + if (newVal !== "") this.$socket.emit("server.files.metadata", { filename: newVal }, { action: "files/getMetadataCurrentFile" }); } @Watch('primaryColor')