"use strict";(self.webpackChunkdami=self.webpackChunkdami||[]).push([[8949],{58949:(a,e,t)=>{t.r(e),t.d(e,{default:()=>l,logData:()=>s});var o=t(57023);async function s({id:a,data:e}){if(!e.workflowId)throw new Error("No workflow is selected");const[t]=await o.Z.items.where("workflowId").equals(e.workflowId).reverse().sortBy("endedAt");let s=null;return t&&(s=(await o.Z.logsData.where("logId").equals(t.id).first()).data,e.assignVariable&&this.setVariable(e.variableName,s),e.saveData&&this.addDataToColumn(e.dataColumn,s)),{data:s,nextBlockId:this.getBlockConnections(a)}}const l=s}}]);