Skip to content

Commit 7c00f07

Browse files
Vikhyath MondretiVikhyath Mondreti
authored andcommitted
fix lint
1 parent bbde2be commit 7c00f07

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ const WorkflowContent = React.memo(() => {
863863
logger.info(`Workflow ${currentId} not found, redirecting to first available workflow`)
864864

865865
// Validate that workflows belong to the current workspace before redirecting
866-
const workspaceWorkflows = workflowIds.filter(id => {
866+
const workspaceWorkflows = workflowIds.filter((id) => {
867867
const workflow = workflows[id]
868868
return workflow.workspaceId === workspaceId
869869
})
@@ -880,7 +880,9 @@ const WorkflowContent = React.memo(() => {
880880
// Validate that the current workflow belongs to the current workspace
881881
const currentWorkflow = workflows[currentId]
882882
if (currentWorkflow && currentWorkflow.workspaceId !== workspaceId) {
883-
logger.warn(`Workflow ${currentId} belongs to workspace ${currentWorkflow.workspaceId}, not ${workspaceId}`)
883+
logger.warn(
884+
`Workflow ${currentId} belongs to workspace ${currentWorkflow.workspaceId}, not ${workspaceId}`
885+
)
884886
// Redirect to the correct workspace for this workflow
885887
router.replace(`/workspace/${currentWorkflow.workspaceId}/w/${currentId}`)
886888
return

apps/sim/app/workspace/[workspaceId]/w/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function WorkflowsPage() {
3838
const workflowIds = Object.keys(workflows)
3939

4040
// Validate that workflows belong to the current workspace
41-
const workspaceWorkflows = workflowIds.filter(id => {
41+
const workspaceWorkflows = workflowIds.filter((id) => {
4242
const workflow = workflows[id]
4343
return workflow.workspaceId === workspaceId
4444
})

0 commit comments

Comments
 (0)