Преглед на файлове

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);
 };