Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Nov 21, 2019
1 parent a88e28f commit 7466f6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ChartBlock/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'react-chart-editor/lib/react-chart-editor.css';
import Loadable from 'react-loadable';
import { connect } from 'react-redux';
import { searchContent } from '@plone/volto/actions';
import { getDataFromProvider } from '~/actions';
import { getDataFromProvider } from '../actions';
import { Dropdown } from 'semantic-ui-react';

const LoadablePlotlyEditor = Loadable({
Expand Down
6 changes: 2 additions & 4 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function applyConfig(config) {
config.views.contentTypesViews.visualization = VisualizationView;

config.widgets.id.viualization = ChartWidget;

config.blocks.blocksConfig.plotly_charts = {
id: 'plotly_chart',
title: 'Plotly Chart',
Expand All @@ -50,9 +51,6 @@ export function applyConfig(config) {
...config.addonReducers,
...addonReducers,
},
addonRoutes: {
...(config.addonRoutes || []),
addonRoutes,
},
addonRoutes: [...(config.addonRoutes || []), addonRoutes],
};
}

0 comments on commit 7466f6e

Please sign in to comment.