chore(useNodeConnections): add default param
This commit is contained in:
@@ -38,7 +38,7 @@ export function useNodeConnections({
|
||||
nodeId,
|
||||
onConnect,
|
||||
onDisconnect,
|
||||
}: UseNodeConnectionsParams): NodeConnection[] {
|
||||
}: UseNodeConnectionsParams = {}): NodeConnection[] {
|
||||
const _nodeId = useNodeId();
|
||||
const currentNodeId = nodeId ?? _nodeId;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user