Skip to content

Commit

Permalink
fix(extension): set resourceType to weblink for resources from web cl…
Browse files Browse the repository at this point in the history
…ipper
  • Loading branch information
mrcfps committed Feb 14, 2025
1 parent 83bf722 commit faaf492
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/extension/src/hooks/use-save-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,13 @@ export const useSaveCurrentWeblinkAsResource = () => {
const websiteUrl = options?.url?.trim() || location.href;

const resource = {
resourceId: 'tempResId',
title,
data: {
url: websiteUrl,
title,
source: 'extension',
},
resourceType: 'text',
resourceType: 'weblink',
isPublic: false,
readOnly: true,
collabEnabled: false,
Expand All @@ -70,7 +69,7 @@ export const useSaveCurrentWeblinkAsResource = () => {

const createResourceData: UpsertResourceRequest = {
title: resource?.title,
resourceType: 'text',
resourceType: 'weblink',
data: resource?.data,
};

Expand Down

0 comments on commit faaf492

Please sign in to comment.