diff --git a/frontend/app/visualizations/chart/index.js b/frontend/app/visualizations/chart/index.js
index 402302ffc4..b7e6569a98 100644
--- a/frontend/app/visualizations/chart/index.js
+++ b/frontend/app/visualizations/chart/index.js
@@ -222,7 +222,7 @@ const ColorBox = {
export default function (ngModule) {
ngModule.component('colorBox', ColorBox);
ngModule.directive('chartRenderer', ChartRenderer);
- ngModule.directive('chartEditor', ['clientConfig', ChartEditor]);
+ ngModule.directive('chartEditor', ChartEditor);
ngModule.config((VisualizationProvider) => {
const renderTemplate = '';
const editTemplate = '';
diff --git a/frontend/app/visualizations/chart/plotly.js b/frontend/app/visualizations/chart/plotly.js
index 18e352ed3a..d9c2cbeea7 100644
--- a/frontend/app/visualizations/chart/plotly.js
+++ b/frontend/app/visualizations/chart/plotly.js
@@ -475,5 +475,5 @@ const CustomPlotlyChart = (clientConfig) => {
export default function (ngModule) {
ngModule.constant('ColorPalette', ColorPalette);
ngModule.directive('plotlyChart', PlotlyChart);
- ngModule.directive('customPlotlyChart', ['clientConfig', CustomPlotlyChart]);
+ ngModule.directive('customPlotlyChart', CustomPlotlyChart);
}