TablePanel: Do not include angular options in options when switching from angular panel (#24684)

This commit is contained in:
Torkel Ödegaard 2020-05-14 16:03:27 +02:00 committed by GitHub
parent 2b9cc8ba30
commit c59f5436c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,9 +24,10 @@ export const tablePanelChangedHandler = (
prevPluginId: string, prevPluginId: string,
prevOptions: any prevOptions: any
) => { ) => {
// Changing from angular singlestat // Changing from angular table panel
if (prevPluginId === 'table-old' && prevOptions.angular) { if (prevPluginId === 'table-old' && prevOptions.angular) {
console.log('Migrating from angular table', panel); // Todo write migration logic
} }
return prevOptions;
return {};
}; };