Commit c01b8052 by Torkel Ödegaard

fix: clear items list before fetching permissions list

parent e429cd83
...@@ -108,6 +108,8 @@ export const PermissionsStore = types ...@@ -108,6 +108,8 @@ export const PermissionsStore = types
self.isFolder = isFolder; self.isFolder = isFolder;
self.isInRoot = isInRoot; self.isInRoot = isInRoot;
self.dashboardId = dashboardId; self.dashboardId = dashboardId;
self.items.clear();
const res = yield backendSrv.get(`/api/dashboards/id/${dashboardId}/acl`); const res = yield backendSrv.get(`/api/dashboards/id/${dashboardId}/acl`);
const items = prepareServerResponse(res, dashboardId, isFolder, isInRoot); const items = prepareServerResponse(res, dashboardId, isFolder, isInRoot);
self.items = items; self.items = items;
......
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