Fix error when adding set at the end of a plan

This commit is contained in:
Brandon Presley 2022-07-19 17:02:50 +12:00
parent 839d872c1c
commit 9e790e7e1d

View File

@ -71,7 +71,7 @@ export default function EditSet() {
GROUP BY name; GROUP BY name;
`; `;
const [weightResult] = await db.executeSql(bestWeight, [query]); const [weightResult] = await db.executeSql(bestWeight, [query]);
if (!weightResult) if (!weightResult.rows.length)
return { return {
weight: 0, weight: 0,
name: '', name: '',