Skip to content

Commit

Permalink
Fixes template prop (#308)
Browse files Browse the repository at this point in the history
* Fixes templates prop

* Fix broken test
  • Loading branch information
James-Crean authored Jun 4, 2018
1 parent 1a9b20f commit 2c51dbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const mapStateToProps = (state) => {
all_graphics_methods: state.present.graphics_methods,
variables: state.present.variables ? Object.keys(state.present.variables) : [],
graphics_method_types: state.present.graphics_methods ? Object.keys(state.present.graphics_methods) : [],
templates: state.present.templates.names ? state.present.templates.names : [],
templates: state.present.templates ? state.present.templates : [],
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,10 @@ describe('PlotInspectorWrapperTest.jsx', function() {
variables: {
clt: {},
},
templates: {
names: ["default", "quick"]
},
templates: [
"default",
"quick"
],
sheets_model: {
selected_cell_id: "0_0_0",
sheets: [{
Expand Down

0 comments on commit 2c51dbe

Please sign in to comment.