fix type error (#8722)
This commit is contained in:
@@ -69,6 +69,8 @@ export function useApplyPullRequestOTAUpdate() {
|
|||||||
const {currentlyRunning} = useUpdates()
|
const {currentlyRunning} = useUpdates()
|
||||||
const [pending, setPending] = React.useState(false)
|
const [pending, setPending] = React.useState(false)
|
||||||
const currentChannel = currentlyRunning?.channel
|
const currentChannel = currentlyRunning?.channel
|
||||||
|
const isCurrentlyRunningPullRequestDeployment =
|
||||||
|
currentChannel?.startsWith('pull-request')
|
||||||
|
|
||||||
const tryApplyUpdate = async (channel: string) => {
|
const tryApplyUpdate = async (channel: string) => {
|
||||||
setPending(true)
|
setPending(true)
|
||||||
@@ -113,6 +115,7 @@ export function useApplyPullRequestOTAUpdate() {
|
|||||||
return {
|
return {
|
||||||
tryApplyUpdate,
|
tryApplyUpdate,
|
||||||
revertToEmbedded,
|
revertToEmbedded,
|
||||||
|
isCurrentlyRunningPullRequestDeployment,
|
||||||
currentChannel,
|
currentChannel,
|
||||||
pending,
|
pending,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user