fix:#16 fixed empty module construction

This commit is contained in:
masterelmar
2023-10-25 17:20:10 +02:00
parent 5c438424a2
commit 9513fc06d0
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ const ModuleInformation = defineAsyncComponent(
); );
async function showInfo(moduleName: string) { async function showInfo(moduleName: string) {
const module: Ref<Module> = ref(new Module("", "", "", "", "", [])); const module: Ref<Module> = ref(new Module("", "", "", "", "", "", []));
await fetchModule(moduleName).then((data) => { await fetchModule(moduleName).then((data) => {
module.value = data; module.value = data;
}); });

View File

@@ -37,7 +37,7 @@ const ModuleInformation = defineAsyncComponent(
); );
async function showInfo(moduleName: string) { async function showInfo(moduleName: string) {
const module: Ref<Module> = ref(new Module("", "", "", "", "", [])); const module: Ref<Module> = ref(new Module("", "", "", "", "", "", []));
await fetchModule(moduleName).then((data) => { await fetchModule(moduleName).then((data) => {
module.value = data; module.value = data;
}); });