v12
v12 copied to clipboard
[BUG] - wrong key name for channel-web sent history
Describe the bug A clear and concise description of what the bug is.
It seems like window.BOT_ID is undefined, which is causing the issue (see: modules/channel-web/src/views/lite/store/composer.ts).
To Reproduce Steps to reproduce the behavior:
- Open the studio
- Converse with your bot
- Open your browser's DevTools
- Under Application -> localStorage, you'll see a
bp::undefined::sentHistorykey
Expected behavior The key should be something like ``
Screenshots

Environment (please complete the following information):
- OS: Arch Linux
- Browser Chrome
- Browser Version Latest
- Botpress Version 12.26.8
- NodeJS 12.18.1
https://github.com/botpress/botpress/blob/HEAD/modules/channel-web/src/views/lite/store/composer.ts#L10-L11 window.BOT_ID might not be assigned yet when the code is run, I can't find where it is being set