Skip to content
Snippets Groups Projects
Unverified Commit 312bc569 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(gitlabci): defensive object check (#11898)

parent 415a051e
No related merge requests found
......@@ -42,7 +42,7 @@ export function extractPackageFile(
includes = [doc.include];
}
for (const includeObj of includes) {
if (includeObj.file && includeObj.project) {
if (includeObj?.file && includeObj.project) {
const dep = extractDepFromIncludeFile(includeObj);
if (config.endpoint) {
dep.registryUrls = [config.endpoint.replace(/\/api\/v4\/?/, '')];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment