bill 4 månader sedan
förälder
incheckning
03c09950ab
1 ändrade filer med 3 tillägg och 4 borttagningar
  1. 3 4
      src/views/guide/path/edit.vue

+ 3 - 4
src/views/guide/path/edit.vue

@@ -53,10 +53,9 @@ import { asyncTimeout } from "@/utils";
 
 const { all, selects, updateSelect } = selectPaths;
 
-
 const currentPath = ref<Path | null>(null);
-const emit = defineEmits<{(e: 'update:current', v: Path | null): void}>()
-watchEffect(() => emit('update:current', currentPath.value))
+const emit = defineEmits<{ (e: "update:current", v: Path | null): void }>();
+watchEffect(() => emit("update:current", currentPath.value));
 
 const leaveEdit = () => {
   currentPath.value = null;
@@ -103,7 +102,7 @@ useViewStack(autoSavePaths);
 
 defineExpose({
   add: () => {
-    edit(createPath());
+    edit();
   },
 });
 </script>