bugfix
This commit is contained in:
@@ -43,6 +43,7 @@ function PostActions() {
|
||||
if (!isMedia) {
|
||||
headers = { "Content-Type": "application/json" }
|
||||
}
|
||||
|
||||
await fetch(`/api/v1/post/${isUpdating ? `update/${toUpdate}` : "create"}`, {
|
||||
method: isUpdating ? "PUT" : "POST",
|
||||
headers,
|
||||
@@ -78,7 +79,6 @@ function PostActions() {
|
||||
|
||||
) : (
|
||||
<input placeholder="Текст поста" type="text" className="beautiful_input" id="textInput" defaultValue={oldPost.message} style={isMedia ? ({ display: "none" }) : ({ display: "block" })}></input>
|
||||
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user