feat(editor): Add readonly mode to new canvas (no-changelog) (#10133)

This commit is contained in:
Alex Grozav
2024-07-23 11:27:09 +03:00
committed by GitHub
parent a96db344e5
commit 6b8ad6fc3e
10 changed files with 208 additions and 16 deletions

View File

@@ -213,8 +213,11 @@ export function useCanvasMapping({
const lastNodeExecuted = workflowExecution?.data?.resultData?.lastNodeExecuted;
if (workflowExecution && lastNodeExecuted && isExecutionSummary(workflowExecution)) {
if (node.name === workflowExecution.data?.resultData?.lastNodeExecuted) {
const waitDate = new Date(workflowExecution.waitTill as Date);
if (
node.name === workflowExecution.data?.resultData?.lastNodeExecuted &&
workflowExecution.waitTill
) {
const waitDate = new Date(workflowExecution.waitTill);
if (waitDate.toISOString() === WAIT_TIME_UNLIMITED) {
acc[node.id] = i18n.baseText(