We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a64f2db commit a404cd8Copy full SHA for a404cd8
frontend/public/assistant.js
@@ -1,4 +1,4 @@
1
-; (function () {
+;(function () {
2
window.sqlbot_assistant_handler = window.sqlbot_assistant_handler || {}
3
const defaultData = {
4
id: '1',
@@ -461,8 +461,10 @@
461
let tempData = Object.assign(defaultData, { id, domain_url })
462
if (config_json) {
463
const config = JSON.parse(config_json)
464
- Object.assign(tempData, config)
465
- tempData = Object.assign(tempData, config)
+ if (config) {
+ delete config.id
466
+ tempData = Object.assign(tempData, config)
467
+ }
468
}
469
tempData['online'] = online && online.toString().toLowerCase() == 'true'
470
initsqlbot_assistant(tempData)
0 commit comments