diff options
-rw-r--r-- | script-beta/vm/getLinks.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script-beta/vm/getLinks.lua b/script-beta/vm/getLinks.lua index 6a19fbc8..0d95fa89 100644 --- a/script-beta/vm/getLinks.lua +++ b/script-beta/vm/getLinks.lua @@ -15,10 +15,10 @@ local function getFileLinks(uri) return end local args = call.args - if type(args[1]) ~= 'string' then + if not args[1] or args[1].type ~= 'string' then return end - local uris = ws.findUrisByRequirePath(args[1], true) + local uris = ws.findUrisByRequirePath(args[1][1], true) for _, u in ipairs(uris) do u = files.asKey(u) if not links[u] then |