handle cases with empty path

This commit is contained in:
Ben Irvin 2023-05-11 15:15:07 +02:00
parent 4296a4149e
commit 35bcad0ae7

View File

@ -291,7 +291,7 @@ const getDiffHandler = (engine, { force, action }) => {
if ( if (
uid === 'admin::workflow' || uid === 'admin::workflow' ||
uid === 'admin::workflow-stage' || uid === 'admin::workflow-stage' ||
endPath.startsWith('strapi_reviewWorkflows_') endPath?.startsWith('strapi_reviewWorkflows_')
) { ) {
workflowsStatus = diff.kind; workflowsStatus = diff.kind;
} }