fix undefined

This commit is contained in:
Thomas Zarebczan 2019-05-10 00:41:34 -04:00
parent 65d80f779f
commit f286e21805

View file

@ -255,7 +255,7 @@ export const doPublish = (params: PublishParams) => (dispatch: Dispatch, getStat
} }
if (nsfw) { if (nsfw) {
if (!publishPayload.tags.includes('mature')) { if (publishPayload.tags && !publishPayload.tags.includes('mature')) {
publishPayload.tags.push('mature'); publishPayload.tags.push('mature');
} }
} else { } else {