mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
BrowseDashboards: Stop caching getAffectedItems
(#89609)
stop caching getAffectedItems since alert rule/library panel creation isn't in rtkquery
This commit is contained in:
parent
6a68cc87a9
commit
a89deaeb73
@ -209,6 +209,8 @@ export const browseDashboardsAPI = createApi({
|
||||
|
||||
// gets the descendant counts for a folder. used in the move/delete modals.
|
||||
getAffectedItems: builder.query<DescendantCount, DashboardTreeSelection>({
|
||||
// don't cache this data for now, since library panel/alert rule creation isn't done through rtk query
|
||||
keepUnusedDataFor: 0,
|
||||
queryFn: async (selectedItems) => {
|
||||
const folderUIDs = Object.keys(selectedItems.folder).filter((uid) => selectedItems.folder[uid]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user