From eb346144a829834f22f442a9ae1b1aaba24468f6 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Tue, 7 Mar 2023 14:24:32 +0100 Subject: [PATCH] fixed var name --- ccp/js/methodlistcontroller2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccp/js/methodlistcontroller2.js b/ccp/js/methodlistcontroller2.js index aa88464..285a65f 100644 --- a/ccp/js/methodlistcontroller2.js +++ b/ccp/js/methodlistcontroller2.js @@ -179,8 +179,8 @@ class CCPMethodList2 extends HTMLElement{ const method = this.#data[m] for(let i=0; i < infras.length; i++){ const infra = infras[i] - const matches = m.links.filter(l => l.rel === "compatibleWith" && l.href === "infrastructures/" + infra.id) - m["executable"] = matches.length > 0 + const matches = method.links.filter(l => l.rel === "compatibleWith" && l.href === "infrastructures/" + infra.id) + method["executable"] = matches.length > 0 } } }).catch(err=>{