mirror of
https://github.com/zapstore/zapstore.git
synced 2026-10-05 20:48:24 +00:00
Fix breaking stacks upon updating app
This commit is contained in:
@@ -72,7 +72,7 @@ class AppStackContainer extends HookConsumerWidget {
|
|||||||
tags: {
|
tags: {
|
||||||
'#f': {platform},
|
'#f': {platform},
|
||||||
},
|
},
|
||||||
source: const LocalAndRemoteSource(relays: 'AppCatalog', stream: false),
|
source: const LocalAndRemoteSource(relays: 'AppCatalog'),
|
||||||
subscriptionPrefix: 'app-stack',
|
subscriptionPrefix: 'app-stack',
|
||||||
schemaFilter: appStackEventFilter,
|
schemaFilter: appStackEventFilter,
|
||||||
),
|
),
|
||||||
@@ -81,8 +81,11 @@ class AppStackContainer extends HookConsumerWidget {
|
|||||||
final allStacks = appStacksState.models.toList();
|
final allStacks = appStacksState.models.toList();
|
||||||
|
|
||||||
if (allStacks.isEmpty) {
|
if (allStacks.isEmpty) {
|
||||||
|
if (appStacksState is StorageLoading<AppStack>) {
|
||||||
return _buildSkeleton(context);
|
return _buildSkeleton(context);
|
||||||
}
|
}
|
||||||
|
return const SizedBox.shrink();
|
||||||
|
}
|
||||||
|
|
||||||
final sortedStacks = _shuffleStacks(
|
final sortedStacks = _shuffleStacks(
|
||||||
allStacks,
|
allStacks,
|
||||||
|
|||||||
+2
-2
@@ -629,10 +629,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: logger
|
name: logger
|
||||||
sha256: a7967e31b703831a893bbc3c3dd11db08126fe5f369b5c648a36f821979f5be3
|
sha256: "25aee487596a6257655a1e091ec2ae66bc30e7af663592cc3a27e6591e05035c"
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "2.6.2"
|
version: "2.7.0"
|
||||||
logging:
|
logging:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|||||||
Reference in New Issue
Block a user