+ A:{{ currentPath.join('\\') + '\\' + currentFileName }}
+
+
+
+
diff --git a/src/components/DiskInfo.vue b/src/components/DiskInfo.vue
index acd5cbc..1a5d768 100644
--- a/src/components/DiskInfo.vue
+++ b/src/components/DiskInfo.vue
@@ -2,19 +2,15 @@
import { computed } from 'vue'
import { FloppyDisk } from '@/floppy/disk.ts'
-const { data = new ArrayBuffer(0) } = defineProps<{ data: ArrayBuffer }>()
-
-const floppyDisk = computed(() => {
- return new FloppyDisk(data)
-})
+const { floppyDisk = null } = defineProps<{ floppyDisk: FloppyDisk | null }>()
const fileListing = computed(() => {
- return floppyDisk.value.buildFileListing()
+ return floppyDisk?.buildFileListing()
})