store/backendApi: export the relevant store api

Since the implementation of the cockpitApi and imageBuilderApi are different,
we should make sure to export the correct one depending on the environment
we are in.
This commit is contained in:
Gianluca Zuccarelli 2024-12-20 14:02:02 +00:00 committed by Lucas Garfield
parent 79532e4ac5
commit 3e6985988a
5 changed files with 29 additions and 15 deletions

View file

@ -10,6 +10,7 @@ import {
Title,
} from '@patternfly/react-core';
import { useGetBlueprintsQuery } from '../../store/backendApi';
import {
selectSelectedBlueprintId,
selectBlueprintSearchInput,
@ -18,7 +19,6 @@ import {
import { useAppSelector } from '../../store/hooks';
import {
BlueprintItem,
useGetBlueprintsQuery,
useGetBlueprintComposesQuery,
Distributions,
GetBlueprintComposesApiArg,

View file

@ -26,6 +26,7 @@ import {
MODAL_ANCHOR,
SEARCH_INPUT,
} from '../../constants';
import { useGetBlueprintsQuery } from '../../store/backendApi';
import {
selectSelectedBlueprintId,
selectBlueprintSearchInput,
@ -33,7 +34,6 @@ import {
import { useAppSelector } from '../../store/hooks';
import {
BlueprintItem,
useGetBlueprintsQuery,
ComposesResponseItem,
ComposeStatus,
ImageTypes,