mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 22:54:31 +00:00
fix: releases status update
This commit is contained in:
parent
860b3bae00
commit
d272f5d183
@ -276,7 +276,11 @@ const releaseApi = adminApi
|
||||
data: body,
|
||||
};
|
||||
},
|
||||
invalidatesTags: () => [{ type: 'ReleaseAction', id: 'LIST' }],
|
||||
invalidatesTags: (res, error, arg) => [
|
||||
{ type: 'ReleaseAction', id: 'LIST' },
|
||||
{ type: 'Release', id: 'LIST' },
|
||||
{ type: 'Release', id: arg.params.releaseId },
|
||||
],
|
||||
async onQueryStarted({ body, params, query, actionPath }, { dispatch, queryFulfilled }) {
|
||||
// We need to mimic the same params received by the getReleaseActions query
|
||||
const paramsWithoutActionId = {
|
||||
|
||||
@ -291,7 +291,7 @@ const createReleaseActionService = ({ strapi }: { strapi: Core.Strapi }) => {
|
||||
|
||||
const actionStatus =
|
||||
update.type === 'publish'
|
||||
? getDraftEntryValidStatus(
|
||||
? await getDraftEntryValidStatus(
|
||||
{
|
||||
contentType: action.contentType,
|
||||
documentId: action.entryDocumentId,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user