From 14b7c03efa99cf9b443046cdbe661d0dcd004fed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 2 Dec 2020 22:16:53 +0100 Subject: [PATCH] fix set name bug for collab demo --- docs/src/demos/Examples/CollaborativeEditing/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index 7dae33a2..a857d84e 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -109,7 +109,7 @@ export default { methods: { setName() { - const name = window.prompt('Name') + const name = (window.prompt('Name') || '') .trim() .substring(0, 32)