Skip to content

Commit 5ac63e0

Browse files
author
Duy Thanh
committed
fix: allow nullable weight in RnFuzzySearchModule
1 parent 7522b91 commit 5ac63e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/rnfuzzysearch/RnFuzzySearchModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RnFuzzySearchModule(reactContext: ReactApplicationContext) :
3434
is Map<*, *> -> {
3535
val fieldKey = field["name"] as String
3636
val fieldValue = item[fieldKey]
37-
val weight = field["weight"] as Double
37+
val weight = field["weight"] as Double?
3838
val type = field["type"] as String
3939
Triple(fieldValue, weight, ElementType.valueOf(type))
4040
}

0 commit comments

Comments
 (0)