Fix useEffect infinite re-render (#245)

This commit is contained in:
Dillon Skaggs authored and GitHub committed 2021-06-05 00:12:33 +02:00
1 parent b257f5bc73
commit aa185224e7
7 files changed
+11 -38

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ export class _ContactsDB {
limit = FetchDefaultLimits.CONTACTS_FETCH_LIMIT,
): Promise<Contact[]> {
const query =
'SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC LIMIT ?';
'SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC';
const [results] = await pool.query(query, [identifier, limit]);
return <Contact[]>results;
}