mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-14 04:16:33 +02: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
@ -48,7 +48,7 @@ Rectangle {
|
||||
color: "#F0EEEE"
|
||||
|
||||
function getSelectedAmount() {
|
||||
if (typeof model === 'undefined')
|
||||
if (typeof model === 'undefined' || model == null)
|
||||
return ""
|
||||
var total = 0
|
||||
var count = model.rowCount()
|
||||
|
Loading…
Reference in New Issue
Block a user