mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
commit
20652cf968
@ -37,7 +37,7 @@ const TagInput = ({
|
||||
const _handleOnChange = (_text) => {
|
||||
setText(_text.replace(/,/g, ' ').replace(/#/g, ''));
|
||||
|
||||
let cats = _text.split(' ');
|
||||
let cats = _text.trim().split(' ');
|
||||
if (handleTagChanged && cats.length > 0) {
|
||||
cats.length > 10
|
||||
? setWarning(intl.formatMessage({ id: 'editor.limited_tags' }))
|
||||
|
@ -799,7 +799,7 @@ class EditorContainer extends Component {
|
||||
let jsonMeta = {};
|
||||
|
||||
try {
|
||||
const oldJson = JSON.parse(jsonMetadata);
|
||||
const oldJson = jsonMetadata; //already parsed in postParser.js
|
||||
jsonMeta = makeJsonMetadataForUpdate(oldJson, meta, tags);
|
||||
} catch (e) {
|
||||
jsonMeta = makeJsonMetadata(meta, tags);
|
||||
|
Loading…
Reference in New Issue
Block a user