Fixed bio and profile nav overflow, scene page channel name when no logo.

This commit is contained in:
2024-11-03 01:56:51 +01:00
parent cd85e46594
commit 8f5b7e9c45
5 changed files with 44 additions and 9 deletions

View File

@@ -824,6 +824,16 @@ export async function createActorRevision(actorId, {
return null;
}
if (key === 'originCountry' && edits.originPlace) {
// place overrides country
return null;
}
if (key === 'residenceCountry' && edits.residenceCountry) {
// place overrides country
return null;
}
if (['originPlace', 'residencePlace'].includes(key)) {
if (!value) {
return [
@@ -847,10 +857,15 @@ export async function createActorRevision(actorId, {
throw new Error(`Failed to resolve ${key} ${value}`);
}
const countryKey = key.includes('origin') ? 'originCountry' : 'residenceCountry';
return [
{
key: key.includes('origin') ? 'originCountry' : 'residenceCountry',
key: countryKey,
value: resolvedLocation.country,
comment: edits[countryKey] && edits[countryKey] !== resolvedLocation.country
? `${countryKey} overridden by resolved ${key}`
: null,
},
{
key: key.includes('origin') ? 'originState' : 'residenceState',