Files
swagger-ui/src/plugins/configs/selectors.js
Josh Ponelat 50b318c5d9 Create a configs plugin
This starts to migrate configs to state
2017-10-25 09:59:54 +02:00

5 lines
169 B
JavaScript

// Just get the config value ( it can possibly be an immutable object)
export const get = (state, path) => {
return state.getIn(Array.isArray(path) ? path : [path])
}