From 5f907558afdf404fe1456d26e836bea6bf039dbc Mon Sep 17 00:00:00 2001 From: kean Date: Fri, 9 Jun 2023 11:31:20 -0400 Subject: [PATCH] Fix Core Data threading issue in ThemeService --- WordPress/Classes/Services/ThemeService.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WordPress/Classes/Services/ThemeService.m b/WordPress/Classes/Services/ThemeService.m index de828dc7464d..200493b2ba89 100644 --- a/WordPress/Classes/Services/ThemeService.m +++ b/WordPress/Classes/Services/ThemeService.m @@ -216,7 +216,7 @@ - (NSProgress *)getThemesForBlog:(Blog *)blog NSMutableSet *unsyncedThemes = [NSMutableSet setWithSet:blogInContext.themes]; [unsyncedThemes minusSet:[NSSet setWithArray:themes]]; for (Theme *deleteTheme in unsyncedThemes) { - if (![blog.currentThemeId isEqualToString:deleteTheme.themeId]) { + if (![blogInContext.currentThemeId isEqualToString:deleteTheme.themeId]) { [context deleteObject:deleteTheme]; } }