Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
fix(desktop): fix custom ui extension loading from DB
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed Oct 28, 2024
1 parent c6f27a4 commit 9724a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/desktop/pages/iframe-ext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ onMounted(async () => {
if (!identifier || !parseUrl.output) {
return navigateTo(localePath("/"))
}
const extInfoInDB = await db.getUniqueExtensionByIdentifier(identifier)
const extInfoInDB = await db.getUniqueExtensionByPath(loadedExt.value.extPath)
if (!extInfoInDB) {
toast.error("Unexpected Error", {
description: `Worker extension ${identifier} not found in database. Run Troubleshooter.`
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/models/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ export const ExtPackageJson = object({
name: string("Package name for the extension (just a regular npm package name)"),
version: string("Version of the extension"),
author: optional(Person),
draft: optional(boolean("Whether the extension is a draft, draft will not be published")),
contributors: optional(array(Person, "Contributors of the extension")),
repository: optional(
union([
Expand Down

0 comments on commit 9724a50

Please sign in to comment.