From 30ddc3628877e57d7fd14298f2c11a0838439b3c Mon Sep 17 00:00:00 2001 From: khansadaoudi Date: Wed, 27 Nov 2024 11:30:11 +0100 Subject: [PATCH] minor fix for conll dialog --- src/components/sentence/ConlluDialog.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/sentence/ConlluDialog.vue b/src/components/sentence/ConlluDialog.vue index 6206b36c..4a0d3e24 100644 --- a/src/components/sentence/ConlluDialog.vue +++ b/src/components/sentence/ConlluDialog.vue @@ -313,9 +313,9 @@ export default defineComponent({ this.conllTable.push({ ...node, HEAD: node.HEAD === -1 ? '_' : node.HEAD, - FEATS: node.FEATS.length ? this.formatTableEntry(node.FEATS, '=') : '_', - DEPS: node.DEPS.length ? this.formatTableEntry(node.DEPS, ':') : '_', - MISC: node.MISC.length ? this.formatTableEntry(node.MISC, '='): '_', + FEATS: Object.keys(node.FEATS).length ? this.formatTableEntry(node.FEATS, '=') : '_', + DEPS: Object.keys(node.DEPS).length ? this.formatTableEntry(node.DEPS, ':') : '_', + MISC: Object.keys(node.MISC).length ? this.formatTableEntry(node.MISC, '='): '_', }); } },