Merge pull request #222 from public-awesome/token-description-line-breaks

Enable line breaks with manual metadata input for 1/1 collections
This commit is contained in:
Serkan Reis 2023-09-26 08:46:51 +03:00 committed by GitHub
commit 0eaa66f2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -129,7 +129,7 @@ export const MetadataInput = (props: MetadataInputProps) => {
if (nameState.value === '') delete metadata.name
else metadata.name = nameState.value
if (descriptionState.value === '') delete metadata.description
else metadata.description = descriptionState.value
else metadata.description = descriptionState.value.replaceAll('\\n', '\n')
if (externalUrlState.value === '') delete metadata.external_url
else metadata.external_url = externalUrlState.value
if (youtubeUrlState.value === '') delete metadata.youtube_url