Fixes Node.js bindings always enabling alternatives when using boolean overload
This commit is contained in:
parent
6a555a477b
commit
c1cb3ebff7
@ -721,7 +721,7 @@ argumentsToRouteParameter(const Nan::FunctionCallbackInfo<v8::Value> &args,
|
||||
if (value->IsBoolean())
|
||||
{
|
||||
params->alternatives = value->BooleanValue();
|
||||
params->number_of_alternatives = 1u;
|
||||
params->number_of_alternatives = value->BooleanValue() ? 1u : 0u;
|
||||
}
|
||||
else if (value->IsNumber())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user