fix: module placing incorrectly

This commit is contained in:
kwaroran
2024-05-30 18:11:52 +09:00
parent 80b3c30350
commit 777815a2b2

View File

@@ -82,16 +82,17 @@
alertError(language.notLoggedIn)
return
}
$ShowRealmFrameStore = `module:${i}`
const index = $DataBase.modules.findIndex((v) => v.id === rmodule.id)
$ShowRealmFrameStore = `module:${index}`
}
}}>
<Share2Icon size={18}/>
</button>
<button class="text-textcolor2 hover:text-green-500 mr-2 cursor-pointer" use:tooltip={language.edit} on:click={async (e) => {
e.stopPropagation()
const index = $DataBase.modules.findIndex((v) => v.id === rmodule.id)
tempModule = rmodule
editModuleIndex = i
editModuleIndex = index
mode = 2
}}>
<Edit size={18}/>