TextPanel: Removes text mode (#25589)

This commit is contained in:
Hugo Häggmark
2020-06-15 10:17:46 +02:00
committed by GitHub
parent 7a27dfdffa
commit 258092ec7f
4 changed files with 30 additions and 2 deletions

View File

@@ -11,5 +11,9 @@ export const textPanelMigrationHandler = (panel: PanelModel<TextOptions>): Parti
return { content, mode };
}
return panel.options as TextOptions;
if (panel.options.mode === 'text') {
return { content: panel.options.content, mode: 'markdown' };
}
return panel.options;
};