LibWeb/IDB: Use correct key comparison when doing Index lookup

This commit is contained in:
stelar7 2025-04-29 19:56:34 +02:00 committed by Jelle Raaijmakers
commit f3a31c98ea
Notes: github-actions[bot] 2025-05-06 09:17:30 +00:00

View file

@ -51,7 +51,7 @@ void Index::set_name(String name)
bool Index::has_record_with_key(GC::Ref<Key> key) bool Index::has_record_with_key(GC::Ref<Key> key)
{ {
auto index = m_records.find_if([&key](auto const& record) { auto index = m_records.find_if([&key](auto const& record) {
return record.key == key; return Key::equals(record.key, key);
}); });
return index != m_records.end(); return index != m_records.end();