Skip to content
Snippets Groups Projects
Commit 3d29cf68 authored by Prince Gupta's avatar Prince Gupta :speech_balloon: Committed by Hugo Beauzée-Luyssen
Browse files

qml: fix Helpers.get for 0 value

parent 8404ed4d
No related branches found
No related tags found
1 merge request!1876qml: use async api to query data for context menu handling
......@@ -50,7 +50,7 @@ function isValidInstanceOf(object, type) {
// or the value is invalid, returns defaultValue
function get(dict, key, defaultValue) {
var v = typeof dict !== "undefined" ? dict[key] : undefined
return !v ? defaultValue : v
return typeof v === "undefined" ? defaultValue : v
}
// NOTE: This allows us to force another 'reason' even when the item has activeFocus.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment