🐛 Dozens of bug fixes

This commit is contained in:
2025-07-18 18:57:16 +08:00
parent e6c58b7b63
commit 3a4faac8cb
10 changed files with 48 additions and 33 deletions

View File

@@ -160,11 +160,11 @@ class EditPublisherScreen extends HookConsumerWidget {
try {
final client = ref.watch(apiClientProvider);
final resp = await client.request(
name == null
'/sphere${name == null
? currentRealm.value == null
? '/publishers/individual'
: '/publishers/organization/${currentRealm.value!.slug}'
: '/publishers/$name',
: '/publishers/$name'}',
data: {
'name': nameController.text,
'nick': nickController.text,