fixed bug
This commit is contained in:
parent
4026cdeb77
commit
8fc6ab8e6a
|
@ -18,6 +18,7 @@ function PostActions() {
|
|||
if (oldPostContent.type == 1) {
|
||||
setIsMedia(true)
|
||||
}
|
||||
|
||||
setOldPost(oldPostContent);
|
||||
}
|
||||
}
|
||||
|
@ -76,7 +77,7 @@ function PostActions() {
|
|||
<input type="file" className="beautiful_input" name="file" id="fileUploader" style={isMedia ? ({ display: "block" }) : ({ display: "none" })}></input>
|
||||
|
||||
) : (
|
||||
<input placeholder="Текст поста" type="text" className="beautiful_input" id="textInput" value={oldPost.message} style={isMedia ? ({ display: "none" }) : ({ display: "block" })}></input>
|
||||
<input placeholder="Текст поста" type="text" className="beautiful_input" id="textInput" defaultValue={oldPost.message} style={isMedia ? ({ display: "none" }) : ({ display: "block" })}></input>
|
||||
|
||||
)}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue