Skip to content

Commit 88e5649

Browse files
author
jeacott1
committed
remove the adapter itself from the options passed so config via string works.
1 parent 411daf4 commit 88e5649

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Adapters/AdapterLoader.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ export function loadAdapter(adapter, defaultAdapter, options) {
2222
// If it's define as a module, get the default
2323
if (adapter.default) {
2424
adapter = adapter.default;
25+
}
26+
if(options.adapter) {
27+
delete options.adapter;
2528
}
2629
return loadAdapter(adapter, undefined, options);
2730
} else if (adapter.module) {

0 commit comments

Comments
 (0)