mirror of
https://github.com/flarum/core.git
synced 2025-08-10 02:17:37 +02:00
Rework discussion/post components
This commit is contained in:
@@ -7,7 +7,7 @@ export default Ember.Component.extend({
|
||||
layoutName: 'components/ui/controls/item-list',
|
||||
|
||||
listItems: function() {
|
||||
if (!this.get('items')) return [];
|
||||
if (!Ember.isArray(this.get('items'))) return [];
|
||||
var listItems = [];
|
||||
this.get('items').forEach(function(item) {
|
||||
if (item.tagName != 'li') {
|
||||
|
Reference in New Issue
Block a user