diff --git a/src/js_list.hpp b/src/js_list.hpp index de840554..35c632e1 100644 --- a/src/js_list.hpp +++ b/src/js_list.hpp @@ -207,7 +207,7 @@ void ListClass::snapshot(ContextType ctx, ObjectType this_object, size_t argc validate_argument_count(argc, 0); auto list = get_internal>(this_object); - return_value.set(ResultsClass::create_instance(ctx, realm::Results(list->get_realm(), list->get_query()).snapshot())); + return_value.set(ResultsClass::create_instance(ctx, list->snapshot())); } template