mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
[facts-ui] Remove underscore
This commit is contained in:
@@ -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});
|
||||
});
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user