Skip to content

Commit

Permalink
Update filterComponentTreeNode with string requires
Browse files Browse the repository at this point in the history
  • Loading branch information
vocksel committed Apr 12, 2024
1 parent e9aaa8d commit 77b9acb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/Explorer/filterComponentTreeNode.luau
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
local flipbook = script:FindFirstAncestor("flipbook")

local types = require(flipbook.Explorer.types)

local getTreeDescendants = require(script.Parent.getTreeDescendants)
local types = require("./types")
local getTreeDescendants = require("./getTreeDescendants")

local function filterComponentTreeNode(node: types.ComponentTreeNode, filter: string): boolean
if node.icon == "story" then
Expand Down
4 changes: 1 addition & 3 deletions src/Explorer/filterComponentTreeNode.spec.luau
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
local flipbook = script:FindFirstAncestor("flipbook")

local types = require(flipbook.Explorer.types)
local types = require("./types")

return function()
local filterComponentTreeNode = require(script.Parent.filterComponentTreeNode)
Expand Down

0 comments on commit 77b9acb

Please sign in to comment.