DEV: Merge route:users modifyClass into one (#5)

Running modifyClass twice with the same pluginId means the second modification won't be applied. We can simply combine these two calls into one.
This commit is contained in:
David Taylor 2021-10-27 11:41:52 +01:00 committed by GitHub
parent f26c9fa005
commit 1f5aebb180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,7 @@ export default {
controller.set("cachedUserCardInfo", {});
}
},
});
api.modifyClass("route:users", {
pluginId: 'user-card-directory',
queryParams: {
cards: { refreshModel: true },
},