Fix frontend type error (#27116)
This commit is contained in:
@@ -21,7 +21,7 @@ const i18nPrefix = 'plugin.upgrade'
|
||||
|
||||
type Props = {
|
||||
payload: UpdateFromMarketPlacePayload
|
||||
pluginId: string
|
||||
pluginId?: string
|
||||
onSave: () => void
|
||||
onCancel: () => void
|
||||
isShowDowngradeWarningModal?: boolean
|
||||
@@ -113,9 +113,11 @@ const UpdatePluginModal: FC<Props> = ({
|
||||
const { mutateAsync } = useRemoveAutoUpgrade()
|
||||
const invalidateReferenceSettings = useInvalidateReferenceSettings()
|
||||
const handleExcludeAndDownload = async () => {
|
||||
await mutateAsync({
|
||||
plugin_id: pluginId,
|
||||
})
|
||||
if (pluginId) {
|
||||
await mutateAsync({
|
||||
plugin_id: pluginId,
|
||||
})
|
||||
}
|
||||
invalidateReferenceSettings()
|
||||
handleConfirm()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user