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
1 changed files with 1 additions and 1 deletions

View File

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