Skip to content

Commit

Permalink
fix: allow nullable weight in RnFuzzySearchModule
Browse files Browse the repository at this point in the history
  • Loading branch information
Duy Thanh committed Nov 5, 2024
1 parent 7522b91 commit 5ac63e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RnFuzzySearchModule(reactContext: ReactApplicationContext) :
is Map<*, *> -> {
val fieldKey = field["name"] as String
val fieldValue = item[fieldKey]
val weight = field["weight"] as Double
val weight = field["weight"] as Double?
val type = field["type"] as String
Triple(fieldValue, weight, ElementType.valueOf(type))
}
Expand Down

0 comments on commit 5ac63e0

Please sign in to comment.