Skip to content

Commit d0d2203

Browse files
committed
fix: respect commands config from dashboard
1 parent f191732 commit d0d2203

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ const ChannelWithContext = <
560560
handleRetry,
561561
handleThreadReply,
562562
hasCameraPicker = isImagePickerAvailable(),
563-
hasCommands = (channel.getConfig()?.commands ?? []).length > 0,
563+
hasCommands = (channel?.getConfig()?.commands ?? []).length > 0,
564564
hasCreatePoll,
565565
// If pickDocument isn't available, default to hiding the file picker
566566
hasFilePicker = isDocumentPickerAvailable(),

0 commit comments

Comments
 (0)