From 96b94b868d5fce6d1786f25fbf3ebd18fe91f4da Mon Sep 17 00:00:00 2001 From: Scott Doxey Date: Tue, 1 Aug 2023 23:32:50 -0400 Subject: [PATCH] Check for link selector before returning result. --- lib/update-editor-installers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/update-editor-installers.js b/lib/update-editor-installers.js index 9d20dc9..9138c0a 100644 --- a/lib/update-editor-installers.js +++ b/lib/update-editor-installers.js @@ -22,6 +22,10 @@ export const parseVersionsFromUnityArchive = body => { (acc, elem) => { const link = elem.getAttribute('href'); + if (!link) { + return acc; + } + const [version, hash] = link.replace('unityhub://', '').split('/'); acc[version] = {