Last active
July 21, 2017 16:37
-
-
Save sirbrillig/0e7aa4360ff4a01e5ee452b73f241127 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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