mirror of
https://github.com/flarum/core.git
synced 2025-07-13 12:56:26 +02:00
The document JS payload attribute was previously renamed to apiDocument
This commit is contained in:
@ -185,11 +185,11 @@ export default class Application {
|
||||
* @return {Object|null}
|
||||
* @public
|
||||
*/
|
||||
preloadedDocument() {
|
||||
if (this.data.document) {
|
||||
const results = this.store.pushPayload(this.data.document);
|
||||
preloadedApiDocument() {
|
||||
if (this.data.apiDocument) {
|
||||
const results = this.store.pushPayload(this.data.apiDocument);
|
||||
|
||||
this.data.document = null;
|
||||
this.data.apiDocument = null;
|
||||
|
||||
return results;
|
||||
}
|
||||
|
Reference in New Issue
Block a user