From ec72824e3cae8c7d5246d143b04e7cbc2cad2234 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 29 Aug 2023 11:56:39 +1200 Subject: [PATCH] =?UTF-8?q?Check=20for=20existence=20of=20`plans`=20and=20?= =?UTF-8?q?`workouts`=20-=201.154=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PlanList.tsx | 1 + WorkoutList.tsx | 1 + android/app/build.gradle | 4 ++-- package.json | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PlanList.tsx b/PlanList.tsx index fabf0a7..d7bf20d 100644 --- a/PlanList.tsx +++ b/PlanList.tsx @@ -85,6 +85,7 @@ export default function PlanList() { }, [ids, refresh, term]); const select = useCallback(() => { + if (!plans) return; setIds(plans.map((plan) => plan.id)); }, [plans]); diff --git a/WorkoutList.tsx b/WorkoutList.tsx index cf2ba56..27173f2 100644 --- a/WorkoutList.tsx +++ b/WorkoutList.tsx @@ -116,6 +116,7 @@ export default function WorkoutList() { }; const select = () => { + if (!workouts) return; setNames(workouts.map((workout) => workout.name)); }; diff --git a/android/app/build.gradle b/android/app/build.gradle index 0e39996..1cfd372 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -85,8 +85,8 @@ android { applicationId "com.massive" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 36179 - versionName "1.153" + versionCode 36180 + versionName "1.154" } signingConfigs { release { diff --git a/package.json b/package.json index 6e34abe..8bbba7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "massive", - "version": "1.153", + "version": "1.154", "private": true, "license": "GPL-3.0-only", "scripts": {