Skip to content

Commit 92ce1cd

Browse files
committed
Update RestWrite.js
1 parent 5438cb1 commit 92ce1cd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/RestWrite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1326,7 +1326,9 @@ RestWrite.prototype.runDatabaseOperation = function () {
13261326

13271327
if (this.className === '_Role') {
13281328
this.config.cacheController.role.clear();
1329-
this.config.liveQueryController.clearCachedRoles(this.auth.user);
1329+
if (this.config.liveQueryController) {
1330+
this.config.liveQueryController.clearCachedRoles(this.auth.user);
1331+
}
13301332
}
13311333

13321334
if (this.className === '_User' && this.query && this.auth.isUnauthenticated()) {

0 commit comments

Comments
 (0)