mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 10:04:52 +00:00
fix(app): make per-instance launch hooks clearable (#3757)
* fix(app): make per-instance launch hooks clearable * chore(apps/app-frontend): fix Prettier lints
This commit is contained in:
@@ -25,9 +25,8 @@ const editProfileObject = computed(() => {
|
||||
hooks?: Hooks
|
||||
} = {}
|
||||
|
||||
if (overrideHooks.value) {
|
||||
editProfile.hooks = hooks.value
|
||||
}
|
||||
// When hooks are not overridden per-instance, we want to clear them
|
||||
editProfile.hooks = overrideHooks.value ? hooks.value : {}
|
||||
|
||||
return editProfile
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user