fixed bug
This commit is contained in:
		| @@ -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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user