Skip to content

Commit 413c1e5

Browse files
committed
Linter fixes
1 parent ab863b2 commit 413c1e5

3 files changed

Lines changed: 14 additions & 19 deletions

File tree

apps/chaingraph-frontend/src/components/flow/nodes/ChaingraphNode/ChaingraphNode.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
import { useBreakpoint } from '@/store/execution/hooks/useBreakpoint'
2222
import { useNodeExecution } from '@/store/execution/hooks/useNodeExecution'
2323
import { $activeFlowMetadata } from '@/store/flow'
24-
import { removeNodeFromFlow } from '@/store/nodes'
24+
import { removeNodeFromFlow, updateNodeUI } from '@/store/nodes'
2525
import { useNode } from '@/store/nodes/hooks/useNode'
2626
import {
2727
addFieldObjectPort,
@@ -198,18 +198,18 @@ function ChaingraphNodeComponent({
198198
if (!isDimensionsChanged)
199199
return
200200

201-
// updateNodeUI({
202-
// flowId: activeFlow.id!,
203-
// nodeId: id,
204-
// ui: {
205-
// // ...node.metadata.ui,
206-
// dimensions: {
207-
// width: size.width,
208-
// height: size.height,
209-
// },
210-
// },
211-
// version: node.getVersion(),
212-
// })
201+
updateNodeUI({
202+
flowId: activeFlow.id!,
203+
nodeId: id,
204+
ui: {
205+
// ...node.metadata.ui,
206+
dimensions: {
207+
width: size.width,
208+
height: size.height,
209+
},
210+
},
211+
version: node.getVersion(),
212+
})
213213
},
214214
})
215215

apps/chaingraph-frontend/src/store/flow/stores.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ export const $activeFlowMetadata = combine(
191191
// Subscription related stores
192192
export const $flowSubscriptionStatus = flowDomain.createStore<FlowSubscriptionStatus>(
193193
FlowSubscriptionStatus.IDLE,
194-
).on(setFlowSubscriptionStatus, (_, status) => status)
195-
.reset(resetFlowSubscription)
196-
.reset(clearActiveFlow)
197-
.reset(globalReset)
194+
).on(setFlowSubscriptionStatus, (_, status) => status).reset(resetFlowSubscription).reset(clearActiveFlow).reset(globalReset)
198195

199196
export const $flowSubscriptionError = flowDomain.createStore<FlowSubscriptionError | null>(null)
200197
.on(setFlowSubscriptionError, (_, error) => error)

packages/chaingraph-types/src/flow/__test__/gate-node.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ class TestGateNode extends BaseNode {
105105
if (event.type === NodeEventType.PortConnected) {
106106
// TODO: add check that show source port any has underlying type
107107
}
108-
if (event.type === NodeEventType.PortDisconnected) {
109-
}
110108
}
111109
}
112110

0 commit comments

Comments
 (0)