Skip to content

Commit

Permalink
Revert emplace back on utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ospfranco committed Dec 1, 2024
1 parent 27030e7 commit d204539
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ void to_batch_arguments(jsi::Runtime &rt, jsi::Array const &batchParams,
const jsi::Value &p = batchUpdateParams.getValueAtIndex(rt, x);
auto params =
std::make_shared<std::vector<JSVariant>>(to_variant_vec(rt, p));
commands->emplace_back(query, params);
commands->push_back({query, params});
}
} else {
auto params = std::make_shared<std::vector<JSVariant>>(
to_variant_vec(rt, commandParams));
commands->emplace_back(query, params);
commands->push_back({query, params});
}
}
}
Expand Down

0 comments on commit d204539

Please sign in to comment.