[facts-ui] Remove underscore

This commit is contained in:
harryadel
2022-10-22 07:39:29 +02:00
parent 1d34519861
commit 8130ff1d27
2 changed files with 2 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ Template.serverFacts.helpers({
factsByPackage: () => Facts.server.find(),
facts: function () {
const factArray = [];
_.each(this, function (value, name) {
Object.entries(this).forEach(function ([name, value]) {
if (name !== '_id')
factArray.push({name: name, value: value});
});

View File

@@ -8,8 +8,7 @@ Package.onUse(function (api) {
'ecmascript',
'facts-base',
'mongo',
'templating@1.2.13',
'underscore',
'templating@1.2.13'
], 'client');
api.imply('facts-base');