From 1c2ae8fa1925cd8c2ba1e9f7ef21e8a372c292e5 Mon Sep 17 00:00:00 2001 From: AlixH Date: Fri, 3 Dec 2021 17:42:16 +0100 Subject: [PATCH] Removed duplicated color --- android/app/src/main/res/values/colors.xml | 1 - src/screens/site-areas/SiteAreas.tsx | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml index 9a9630909..d6f23cc78 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -1,7 +1,6 @@ #00376C #0a6ed1 - #262626 #00376C #262626 #E7E7E7 diff --git a/src/screens/site-areas/SiteAreas.tsx b/src/screens/site-areas/SiteAreas.tsx index 0f5967e47..b7d29dd3e 100644 --- a/src/screens/site-areas/SiteAreas.tsx +++ b/src/screens/site-areas/SiteAreas.tsx @@ -85,6 +85,11 @@ export default class SiteAreas extends BaseAutoRefreshScreen { this.site = Utils.getParamFromNavigation(this.props.route, 'site', null) as unknown as Site; } + public componentDidBlur() { + super.componentDidBlur(); + delete this.site + } + public getSiteAreas = async (searchText: string = '', skip: number, limit: number): Promise> => { try { // Get current location