Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/file_table.js

Issue 952893008: Files.app: Fix js exceptions in table rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/file_table.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table.js b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
index e8a574eb2d192b6fe7e67f5f068ea2c09c58433a..f89edd3de372ffa986836f2d6548948b8d1909ca 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_table.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
@@ -742,8 +742,13 @@ FileTable.prototype.updateFileMetadata = function(item, entry) {
/** @type {!HTMLDivElement} */ (item.querySelector('.date')), entry);
this.updateSize_(
/** @type {!HTMLDivElement} */ (item.querySelector('.size')), entry);
- this.updateStatus_(
- /** @type {!HTMLDivElement} */ (item.querySelector('.status')), entry);
+
+ // The status column isn't always visible.
+ // TODO(kenobi): Clean up once the status column's fate is determined.
+ var statusEl = item.querySelector('.status');
+ if (statusEl) {
+ this.updateStatus_(/** @type {!HTMLDivElement} */ (statusEl), entry);
+ }
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698