mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
History: do not dereference a null model
Seems "null" objects in Javascript can either be null, or be non null but with a type of 'undefined' (as a string). Whatever.
This commit is contained in:
parent
24a66c184d
commit
d62dd3ee19
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ Rectangle {
|
||||||
color: "#F0EEEE"
|
color: "#F0EEEE"
|
||||||
|
|
||||||
function getSelectedAmount() {
|
function getSelectedAmount() {
|
||||||
if (typeof model === 'undefined')
|
if (typeof model === 'undefined' || model == null)
|
||||||
return ""
|
return ""
|
||||||
var total = 0
|
var total = 0
|
||||||
var count = model.rowCount()
|
var count = model.rowCount()
|
||||||
|
|
Loading…
Reference in a new issue