mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
M #-: Fix oneks app. request (#4696)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
This commit is contained in:
1 parent
6b08eadba1
commit
2ecd8a3b52
2 files changed
+4
-3
No files matched your search
@@ -98,7 +98,7 @@ export const SingleView = ({
|
||||
)
|
||||
const { currentData: installedApplications } =
|
||||
OneKsAPI.useGetOneKsClusterApplicationsQuery(
|
||||
{ id: selectedId },
|
||||
{ id: selectedId, showNotification: false },
|
||||
{ skip: !isOpen || selectedId === undefined }
|
||||
)
|
||||
const { data: families = [], isLoading: isLoadingFamilies } =
|
||||
|
||||
@@ -287,13 +287,14 @@ const oneKsApi = oneApi.injectEndpoints({
|
||||
* @param {object} params - Request params
|
||||
* @param {string|number} params.id - Cluster ID
|
||||
* @param {boolean} [params.all] - Include dependency applications
|
||||
* @param {boolean} [params.showNotification] - Whether to display request errors
|
||||
* @returns {object[]} Installed applications
|
||||
*/
|
||||
query: (params) => {
|
||||
query: ({ showNotification = true, ...params }) => {
|
||||
const name = Actions.LIST_CLUSTER_APPLICATIONS
|
||||
const command = { name, ...Commands[name] }
|
||||
|
||||
return { params, command }
|
||||
return { params, command, showNotification }
|
||||
},
|
||||
transformResponse: (data) => (Array.isArray(data) ? data : []),
|
||||
providesTags: (_, __, { id }) => [oneKsDetailTag(id)],
|
||||
|
||||
Reference in new issue
Block a user