mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Code fix
Cache result.
This commit is contained in:
committed by
Jean-Baptiste Bellet
parent
200550588a
commit
f4a6bec25d
@@ -30,7 +30,7 @@ export default class extends ApplicationController {
|
||||
};
|
||||
|
||||
getLoadingController = () => {
|
||||
return (this.loadongController = this.application.getControllerForElementAndIdentifier(
|
||||
return (this.loadingController ||= this.application.getControllerForElementAndIdentifier(
|
||||
this.loadingTarget,
|
||||
"loading"
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user