Commit 45241cba authored by Jikkai Xiao's avatar Jikkai Xiao Committed by GitHub

Table: changing current-row-key when current-row-key is assigned to null (#11866)

parent b6eaaf69
...@@ -587,9 +587,7 @@ TableStore.prototype.setCurrentRowKey = function(key) { ...@@ -587,9 +587,7 @@ TableStore.prototype.setCurrentRowKey = function(key) {
const data = states.data || []; const data = states.data || [];
const keysMap = getKeysMap(data, rowKey); const keysMap = getKeysMap(data, rowKey);
const info = keysMap[key]; const info = keysMap[key];
if (info) { states.currentRow = info ? info.row : null;
states.currentRow = info.row;
}
}; };
TableStore.prototype.updateCurrentRow = function() { TableStore.prototype.updateCurrentRow = function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment