From 78954268ab2dfd9c7fcc80e589044f9233d0be33 Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 27 Jan 2023 16:59:59 +0100 Subject: [PATCH] small attribute optimizations --- src/public/app/entities/fnote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/entities/fnote.js b/src/public/app/entities/fnote.js index 652d0b7e1..69147b2b3 100644 --- a/src/public/app/entities/fnote.js +++ b/src/public/app/entities/fnote.js @@ -393,7 +393,7 @@ class FNote { if (!type && !name) { return attributes; } else if (type && name) { - return attributes.filter(attr => attr.type === type && attr.name === name); + return attributes.filter(attr => attr.name === name && attr.type === type); } else if (type) { return attributes.filter(attr => attr.type === type); } else if (name) {