Fix error when adding set at the end of a plan
This commit is contained in:
parent
839d872c1c
commit
9e790e7e1d
|
@ -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: '',
|
||||
|
|
Loading…
Reference in New Issue
Block a user