Skip to content

Commit e360a77

Browse files
committed
use slice
1 parent 9fa33e8 commit e360a77

File tree

1 file changed

+1
-1
lines changed
  • plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview

1 file changed

+1
-1
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/webview/Browser.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class Browser(parent: Disposable, private val webUri: URI, val project: Project)
139139
},
140140
141141
"${activeProfile?.profileName.orEmpty()}")
142-
const commands = hybridChatConnector.initialQuickActions
142+
const commands = hybridChatConnector.initialQuickActions?.slice(0, 2) || []
143143
amazonQChat.createChat(
144144
{
145145
postMessage: message => {

0 commit comments

Comments
 (0)