fixed bug

This commit is contained in:
2025-01-27 17:02:23 +03:00
parent 4026cdeb77
commit 8fc6ab8e6a

View File

@@ -18,6 +18,7 @@ function PostActions() {
if (oldPostContent.type == 1) { if (oldPostContent.type == 1) {
setIsMedia(true) setIsMedia(true)
} }
setOldPost(oldPostContent); 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 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> </div>