refactor(boolean-props): omit is prefix

This commit is contained in:
moklick
2021-11-09 12:35:21 +01:00
parent 050bb3130f
commit a79e953ab3
13 changed files with 66 additions and 74 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ export const getNodesInside = (
height: rect.height / tScale,
});
return nodes.filter(({ selectable = true, position, width, height, isDragging }) => {
return nodes.filter(({ selectable = true, position, width, height, dragging }) => {
if (excludeNonSelectableNodes && !selectable) {
return false;
}
@@ -164,7 +164,7 @@ export const getNodesInside = (
typeof height === 'undefined' ||
width === null ||
height === null ||
isDragging
dragging
) {
// nodes are initialized with width and height = null
return true;