@@ -16,7 +16,7 @@ export const runAthenaQueryAction = createAction({
1616 displayName : 'Query Athena database' ,
1717 isWriteAction : false ,
1818 props : {
19- account : getAwsAccountsSingleSelectDropdown ( ) . accounts ,
19+ accounts : getAwsAccountsSingleSelectDropdown ( ) . accounts ,
2020 region : Property . StaticDropdown ( {
2121 displayName : 'Region' ,
2222 description :
@@ -33,9 +33,9 @@ export const runAthenaQueryAction = createAction({
3333 database : Property . Dropdown < string > ( {
3434 displayName : 'Database' ,
3535 description : 'Database that contains the table to query on' ,
36- refreshers : [ 'auth' , 'account ' , 'account .accounts' , 'region' ] ,
36+ refreshers : [ 'auth' , 'accounts ' , 'accounts .accounts' , 'region' ] ,
3737 required : true ,
38- options : async ( { auth, account , region } : any ) => {
38+ options : async ( { auth, accounts , region } : any ) => {
3939 if ( ! auth ) {
4040 return {
4141 disabled : true ,
@@ -47,7 +47,7 @@ export const runAthenaQueryAction = createAction({
4747 try {
4848 const credentials = await getCredentialsForAccount (
4949 auth ,
50- account ?. [ 'accounts' ] ,
50+ accounts ?. [ 'accounts' ] ,
5151 ) ;
5252
5353 const databases = await listAthenaDatabases (
@@ -110,7 +110,7 @@ export const runAthenaQueryAction = createAction({
110110 try {
111111 const credentials = await getCredentialsForAccount (
112112 context . auth ,
113- context . propsValue . account ?. [ 'accounts' ] ,
113+ context . propsValue . accounts ?. [ 'accounts' ] ,
114114 ) ;
115115
116116 return await runAndWaitForQueryResult (
0 commit comments