Skip to content

Commit

Permalink
fix share issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisoff committed Nov 30, 2024
1 parent ff3e14b commit d28a264
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onedrive-image-hosting",
"version": "3.0.0",
"version": "4.0.0",
"description": "Free image hosting service based on OneDrive",
"keywords": [
"microsoft",
Expand All @@ -24,7 +24,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@harrisoff/onedrive-js-sdk": "^1.1.0",
"@harrisoff/onedrive-js-sdk": "^2.0.0",
"@sentry/react": "^7.13.0",
"@sentry/tracing": "^7.13.0",
"antd": "^4.22.8",
Expand Down
4 changes: 2 additions & 2 deletions src/components/FileList/Item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Popover, Tooltip, Card, Button, Checkbox } from 'antd'
import type { CardProps } from "antd"
import { UploadOutlined, LoadingOutlined } from "@ant-design/icons"
import classNames from 'classnames'
import { getShareUrl } from '@harrisoff/onedrive-js-sdk'

import { useOneDriveClient } from '../../uploader';
import tracker from '../../tracker'
Expand Down Expand Up @@ -67,9 +66,10 @@ export default (props: Props) => {
})
try {
const { shareId } = await oneDriveClient.share(id)
const shareUrl = await oneDriveClient.getShareUrl(shareId)
onChange({
shareId,
shareUrl: getShareUrl(shareId),
shareUrl,
done: true,
errorMessage: '',
})
Expand Down

0 comments on commit d28a264

Please sign in to comment.