mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
fix(plugin-chart-handlebars): fix overflow, debounce and control reset (#19879)
* fix(plugin-chart-handlebars): fix overflow * add debounce, fix reset controls * fix deps * remove redundant code * improve examples * add last missing resetOnHides * fix test * use isPlainObject
This commit is contained in:
@@ -31,15 +31,12 @@ describe('Handlebars tranformProps', () => {
|
||||
height: 500,
|
||||
viz_type: 'handlebars',
|
||||
};
|
||||
const data = [{ name: 'Hulk', sum__num: 1, __timestamp: 599616000000 }];
|
||||
const chartProps = new ChartProps<QueryFormData>({
|
||||
formData,
|
||||
width: 800,
|
||||
height: 600,
|
||||
queriesData: [
|
||||
{
|
||||
data: [{ name: 'Hulk', sum__num: 1, __timestamp: 599616000000 }],
|
||||
},
|
||||
],
|
||||
queriesData: [{ data }],
|
||||
});
|
||||
|
||||
it('should tranform chart props for viz', () => {
|
||||
@@ -47,9 +44,7 @@ describe('Handlebars tranformProps', () => {
|
||||
expect.objectContaining({
|
||||
width: 800,
|
||||
height: 600,
|
||||
data: [
|
||||
{ name: 'Hulk', sum__num: 1, __timestamp: new Date(599616000000) },
|
||||
],
|
||||
data,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user