Skip to content

Instantly share code, notes, and snippets.

@sirbrillig
Last active July 21, 2017 16:37
Show Gist options
  • Save sirbrillig/0e7aa4360ff4a01e5ee452b73f241127 to your computer and use it in GitHub Desktop.
Save sirbrillig/0e7aa4360ff4a01e5ee452b73f241127 to your computer and use it in GitHub Desktop.
diff --git a/client/lib/wp/sync-handler/index.js b/client/lib/wp/sync-handler/index.js
index b07e761..0f67c4e 100644
--- a/client/lib/wp/sync-handler/index.js
+++ b/client/lib/wp/sync-handler/index.js
@@ -54,8 +54,8 @@ export class SyncHandler {
window.syncHandler = this;
}
- this.reqHandler = handler;
- return this.syncHandlerWrapper( handler );
+ this.reqHandler = handler.default || handler;
+ return this.syncHandlerWrapper( handler.default || handler );
}
syncHandlerWrapper( handler ) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment