We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7522b91 commit 5ac63e0Copy full SHA for 5ac63e0
android/src/main/java/com/rnfuzzysearch/RnFuzzySearchModule.kt
@@ -34,7 +34,7 @@ class RnFuzzySearchModule(reactContext: ReactApplicationContext) :
34
is Map<*, *> -> {
35
val fieldKey = field["name"] as String
36
val fieldValue = item[fieldKey]
37
- val weight = field["weight"] as Double
+ val weight = field["weight"] as Double?
38
val type = field["type"] as String
39
Triple(fieldValue, weight, ElementType.valueOf(type))
40
}
0 commit comments