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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js

Issue 2567873002: DevTools: Add ability to add and edit cookies (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
index 3e67015dfd2cbf793fc79ecf32dc0d3b07b85b48..dcce7d1197a8bf130b4457be24862e4e0117c903 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/DataGrid.js
@@ -367,7 +367,7 @@ UI.DataGrid = class extends Common.Object {
}
var column = this._columns[columnId];
var cellIndex = this._visibleColumnsArray.indexOf(column);
- var textBeforeEditing = /** @type {string} */ (this._editingNode.data[columnId]);
+ var textBeforeEditing = /** @type {string} */ (this._editingNode.data[columnId] || '');
kdzwinel 2016/12/11 22:07:07 This prevents new "creation row" from being create
var currentEditingNode = this._editingNode;
/**

Powered by Google App Engine
This is Rietveld 408576698