Skip to content

Commit

Permalink
add active input props back iknto read only node
Browse files Browse the repository at this point in the history
  • Loading branch information
HaruHunab1320 committed Jun 19, 2024
1 parent 84a4a0b commit 70be647
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/client/flow/core/src/lib/node/readonly-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,27 @@ type ReadOnlyNodeProps = Omit<
export const ReadOnlyNode: React.FC<ReadOnlyNodeProps> = props => {
const { id, spec, spellId, ...rest } = props

const activeInput = null
const spellEvent = null

const onResetNodeState = () => {
// Dummy onResetNodeState logic
}

const setActiveInputWrapper = (
input: { nodeId: string; name: string } | null
) => {
// Dummy setActiveInput logic
}

return (
<BaseNode
id={id}
spec={spec}
spellId={spellId}
{...rest}
activeInput={activeInput}
setActiveInput={setActiveInputWrapper}
onResetNodeState={onResetNodeState}
spellEvent={spellEvent}
/>
Expand Down

0 comments on commit 70be647

Please sign in to comment.