Skip to content

Commit a57804b

Browse files
committed
undefined
1 parent 674ed67 commit a57804b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/plugins/avatars.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class Avatars {
5656
});
5757
}
5858

59-
if (typeof this.store === 'object' && typeof this.opts.publicPath !== 'string') {
59+
if (typeof this.store === 'object' && this.store != null &&
60+
typeof this.options.publicPath !== 'string') {
6061
throw new TypeError('`publicPath` is not set, but it is required because `store` is set.');
6162
}
6263

0 commit comments

Comments
 (0)