Fix query name not updating
- For queries take the payload as it is.
This commit is contained in:
parent
b06d4b3ae0
commit
7c9f2185fa
|
|
@ -471,13 +471,14 @@ export function* updateActionSaga(
|
|||
const isApi = actionPayload.payload.data.pluginType === "API";
|
||||
const { data } = actionPayload.payload;
|
||||
let action = data;
|
||||
|
||||
if (isApi) {
|
||||
action = transformRestAction(data);
|
||||
action.name = (yield select(getActions)).find(
|
||||
(act: any) => act.config.id === action.id,
|
||||
)?.config.name;
|
||||
}
|
||||
|
||||
action.name = (yield select(getActions)).find(
|
||||
(act: any) => act.config.id === action.id,
|
||||
)?.config.name;
|
||||
const response: GenericApiResponse<RestAction> = yield ActionAPI.updateAPI(
|
||||
action,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user