Skip to content

Commit eb05327

Browse files
committed
remove await
1 parent 2f6cf9f commit eb05327

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

examples/panel-basic/src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { loadResources } from 'loadResources';
1111
// Before Grafana version 12.1.0 the plugin is responsible for loading translation resources
1212
// In Grafana version 12.1.0 and later Grafana is responsible for loading translation resources
1313
const loaders = semver.lt(config?.buildInfo?.version, '12.1.0') ? [loadResources] : [];
14-
await initPluginTranslations(pluginJson.id, loaders);
14+
initPluginTranslations(pluginJson.id, loaders);
1515

1616
export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel).setPanelOptions((builder) => {
1717
return builder

examples/panel-basic/tests/translations/swedish.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ test('should display correct translation based on Grafana version (Swedish for v
1515
gotoPanelEditPage,
1616
readProvisionedDashboard,
1717
grafanaVersion,
18-
page,
1918
}) => {
2019
const dashboard = await readProvisionedDashboard({ fileName: 'dashboard.json' });
2120
const panelEditPage = await gotoPanelEditPage({ dashboard, id: '1' });

0 commit comments

Comments
 (0)