chore(connection-line): variable name
This commit is contained in:
@@ -154,9 +154,9 @@ const selector = (s: ReactFlowState) => ({
|
|||||||
|
|
||||||
export function ConnectionLineWrapper({ containerStyle, style, type, component }: ConnectionLineWrapperProps) {
|
export function ConnectionLineWrapper({ containerStyle, style, type, component }: ConnectionLineWrapperProps) {
|
||||||
const { nodeId, handleType, nodesConnectable, width, height, isValid } = useStore(selector, shallow);
|
const { nodeId, handleType, nodesConnectable, width, height, isValid } = useStore(selector, shallow);
|
||||||
const isIncorrect = !(nodeId && handleType && width && nodesConnectable);
|
const renderConnectionLine = !!(nodeId && handleType && width && nodesConnectable);
|
||||||
|
|
||||||
if (isIncorrect) {
|
if (!renderConnectionLine) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user