File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ export function ConfirmMarketplaceInstallDialog({
8686 authorizeOauthUrl : result . redirectUrl ,
8787 } ) ;
8888 setIntegration ( null ) ;
89- } else {
89+ } else if ( ! result . stateSchema ) {
9090 navigateWorkspace (
9191 `/connection/${ integration . provider } :::${ integration . name } ` ,
9292 ) ;
Original file line number Diff line number Diff line change 1- // deno-lint-ignore-file no-explicit-any
21import { useState } from "react" ;
32import {
43 useCreateAPIKey ,
@@ -50,24 +49,7 @@ export function useIntegrationInstallWithModal() {
5049
5150 // If we get a stateSchema, show the modal
5251 if ( result . stateSchema ) {
53- let scopes = result . scopes || [ ] ;
54-
55- // If no scopes were returned, try to get them from the registry app
56- if ( ! scopes || scopes . length === 0 ) {
57- try {
58- const registryApp = await getRegistryApp . mutateAsync ( {
59- name : params . appName ,
60- } ) ;
61-
62- // Check if the registry app has scope information
63- // Note: This might not exist in the current schema, but we can check
64- if ( registryApp && "scopes" in registryApp ) {
65- scopes = ( registryApp as any ) . scopes || [ ] ;
66- }
67- } catch ( error ) {
68- console . warn ( "Failed to get registry app info:" , error ) ;
69- }
70- }
52+ const scopes = result . scopes || [ ] ;
7153
7254 setInstallState ( {
7355 isModalOpen : true ,
You can’t perform that action at this time.
0 commit comments