Merge pull request #1801 from hmhealey/plt1602

PLT-1602 Fix ViewImageModal incorrectly assuming it has a file's info in certain cases
Этот коммит содержится в:
Christopher Speller
2016-01-04 15:57:22 -05:00
родитель 67db3ca8ce 4b76d6a05d
Коммит 0c6483b60a
2 изменённых файлов: 35 добавлений и 17 удалений

Просмотреть файл

@@ -1261,3 +1261,13 @@ export function isFeatureEnabled(feature) {
export function isSystemMessage(post) {
return post.type && (post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0);
}
export function fillArray(value, length) {
const arr = [];
for (let i = 0; i < length; i++) {
arr.push(value);
}
return arr;
}