Commit 535fd145 authored by Bryce Johnson's avatar Bryce Johnson

Do not keep rootEl dataset in memory.

parent 02956aab
......@@ -15,7 +15,7 @@
init(rootStore) {
this.rootStore = rootStore;
this.api = new gl.ApprovalsApi(rootStore.dataset.endpoint);
this.api = new gl.ApprovalsApi(rootStore.rootEl.dataset.endpoint);
this.state = {
fetching: false,
};
......
......@@ -14,7 +14,6 @@
init(rootEl) {
this.rootEl = rootEl;
this.dataset = rootEl.dataset;
this.data = {};
// init other widget stores here
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment