File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,7 @@ export function PrButton({ className = '' }) {
51
51
return doFilesInDraftNeedPush ( filesInDraft , lastPushedFiles )
52
52
} , [ filesInDraft , lastPushedFiles ] )
53
53
54
- if ( ! siteData ) return null
55
- if ( ! siteData . site . githubInstallations ?. length ) return null
56
- if ( ! siteData . site . githubOwner || ! siteData . site . githubRepo ) return null
57
- if ( ! messages ?. length ) return null
54
+
58
55
59
56
const prHref = href ( '/org/:orgId/site/:siteId/chat/:chatId/create-pr' , {
60
57
orgId,
@@ -151,6 +148,11 @@ export function PrButton({ className = '' }) {
151
148
}
152
149
} ) ( )
153
150
151
+ if ( ! siteData ) return null
152
+ if ( ! siteData . site . githubInstallations ?. length ) return null
153
+ if ( ! siteData . site . githubOwner || ! siteData . site . githubRepo ) return null
154
+ if ( ! messages ?. length ) return null
155
+
154
156
return (
155
157
< div className = { cn ( 'flex items-center gap-2' , className ) } >
156
158
< Tooltip >
You can’t perform that action at this time.
0 commit comments