fix undefined
This commit is contained in:
parent
65d80f779f
commit
f286e21805
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue