浏览代码

fix: tippy was sometimes null and threw an error in console

Kristian Vos 1 年之前
父节点
当前提交
616c79e72b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frontend/src/components/QuickConfirm.vue

+ 1 - 1
frontend/src/components/QuickConfirm.vue

@@ -24,7 +24,7 @@ const confirm = event => {
 	clickedOnce.value = false;
 	emit("confirm");
 	setTimeout(() => {
-		quickConfirm.value.tippy.hide();
+		quickConfirm.value?.tippy.hide();
 	}, 25);
 };