fix: [code-1991]: fix closed state (#2094)

ui/offscreen-diff-contents
Calvin Lee 2024-06-11 17:58:31 +00:00 committed by Harness
parent f95e4fd62e
commit 4d81d27091
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ const PullRequestOverviewPanel = (props: PullRequestOverviewPanelProps) => {
const [minReqLatestApproval, setMinReqLatestApproval] = useState(0)
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [resolvedCommentArr, setResolvedCommentArr] = useState<any>()
const [PRStateLoading, setPRStateLoading] = useState(true)
const [PRStateLoading, setPRStateLoading] = useState(isClosed ? false : true)
const { pullRequestSection } = useGetRepositoryMetadata()
const mergeable = useMemo(() => pullReqMetadata.merge_check_status === MergeCheckStatus.MERGEABLE, [pullReqMetadata])
const mergeOptions: PRMergeOption[] = [