Skip to content

QnABot version 6.1.0 breaks creating buttons in appContext for lex-web-ui when greater than 5 buttons are configured #765

@bobpskier

Description

@bobpskier

Describe the bug
QnABot in lex.js used to automatically create the proper structure in the session attribute, appContext, to support greater than 5 buttons when using lex-web-ui. The function copyResponseCardtoSessionAttribute(response) was removed in 6.1.0. Why? This allowed easy support of greater than 5 buttons which is common when using QnABot even with LexV2. Users could add more than five buttons in the designer UI and they would render in lex-web-ui. Such a silly limitation in lex but QnABot was able to work around it however this feature was removed from QnABot.

To Reproduce
Install 6.1.0. Create a question and answer with 6 buttons. The six buttons are no longer passed in appContext as they were in prior versions of QnABot.

Expected behavior
Six or more buttons are passed in appContext such that lex-web-ui can render them.

Please complete the following information about the solution:

  • [ 6.1.0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions