From f24799f47399f08478c2f0ddc5afe5e8abeeba50 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Fri, 7 May 2021 03:48:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Use=20positional=20arguments=20i?= =?UTF-8?q?n=20the=20Condition=20class?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/frontend/src/utils/Condition.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/frontend/src/utils/Condition.js b/code/frontend/src/utils/Condition.js index 1456384..10c061f 100644 --- a/code/frontend/src/utils/Condition.js +++ b/code/frontend/src/utils/Condition.js @@ -26,7 +26,7 @@ export default class Condition { * @param content - The content of the Condition. * @param id - The id of the Condition on the backend, or null if the Condition hasn't been committed yet. */ - constructor({type, content, id = null}) { + constructor(type, content, id = null) { if(isString(type)) { this.type = typeEnums[type.toUpperCase()] }