fix: handle github item from data struct diffe

This commit is contained in:
Joel
2024-11-20 14:48:38 +08:00
parent 40d025052d
commit 1846a7de73
3 changed files with 7 additions and 5 deletions

View File

@ -25,8 +25,8 @@ const Item: FC<Props> = ({
const info = dependency.value
const { data, error } = useUploadGitHub({
repo: info.repo!,
version: info.release!,
package: info.packages!,
version: info.release! || info.version!,
package: info.packages! || info.package!,
})
const [payload, setPayload] = React.useState<Plugin | null>(null)
useEffect(() => {