HomePhabricator

Follow-up f9e8c5057, 983c7a2463: fix JS error when there are no notifications

Authored by Catrope.

Description

Follow-up f9e8c5057, 983c7a2463: fix JS error when there are no notifications

We have to account for the placeholder item, which doesn't have a
getModel method. We should ensure the real items and the placeholder
item implement a common interface so we don't need these kinds of
checks all over the place.

Bug: T114853
Change-Id: Iff6f0e85fb7737e09a34e72038b6b41681d95595
(cherry picked from commit cacccc307a87c3ce563d33382c380c2caf67b066)

Details

Committed
CatropeOct 7 2015, 3:35 PM
Parents
rECHO3e00d496c391: Follow-up f9e8c5057: fix JS error
Branches
Unknown
Tags
Unknown
References
refs/changes/79/244179/1
ChangeId
Iff6f0e85fb7737e09a34e72038b6b41681d95595