web/origin-manager: table_selection_set(): handle undefined table.

This commit is contained in:
Jimmy Berry 2019-08-28 17:08:56 -05:00
parent edfef91b3d
commit 5ee09feb27

View File

@ -95,6 +95,8 @@ function table_selection_get(table) {
}
function table_selection_set(table, value) {
if (typeof table === 'undefined') return;
if (table.getSelectedRows().length > 0) {
if (table.getSelectedRows()[0].getIndex() != value) {
table.getSelectedRows()[0].deselect();