Skip to content
Snippets Groups Projects
Commit fe09da6c authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix flow errors

parent 5a4009c5
Branches
Tags
No related merge requests found
......@@ -67,7 +67,6 @@ export default (ComposedComponent: ReactClass<any>) =>
class DashboardContainer extends Component {
props: Props;
// $FlowFixMe
async load(props) {
const {
initialize,
......
......@@ -71,7 +71,7 @@ class Api extends EventEmitter {
console.warn("Warning: calling", method, "without", tag);
value = "";
}
if (!options.raw[paramName]) {
if (!options.raw || !options.raw[paramName]) {
value = encodeURIComponent(value);
}
url = url.replace(tag, value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment