fixed bug

This commit is contained in:
leca 2025-01-27 17:02:23 +03:00
parent 4026cdeb77
commit 8fc6ab8e6a
1 changed files with 2 additions and 1 deletions

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>