ui: set empty defaults for clickmap
This commit is contained in:
parent
0a4379be6b
commit
11824d2993
1 changed files with 13 additions and 0 deletions
|
|
@ -314,6 +314,19 @@ export default class Widget {
|
|||
}
|
||||
|
||||
if (this.metricType === HEATMAP) {
|
||||
const defaults = {
|
||||
domURL: undefined,
|
||||
duration: 0,
|
||||
events: [],
|
||||
mobsUrl: [],
|
||||
path: '',
|
||||
projectId: 0,
|
||||
sessionId: null,
|
||||
startTs: 0
|
||||
};
|
||||
if (!data || !data.domURL) {
|
||||
this.data = defaults;
|
||||
}
|
||||
Object.assign(this.data, data);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue