Skip to content

Commit

Permalink
fix(console): reset queue textbox after sending a message (#7009)
Browse files Browse the repository at this point in the history
Fixes #2551.
  • Loading branch information
skyrpex authored Aug 12, 2024
1 parent 36e6b27 commit e433bb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ export const QueueInteraction = ({
if (!message || message === "") {
return;
}
setMessage("");
onPushMessageClick(message);
}, [message, onPushMessageClick]);
}, [message, onPushMessageClick, setMessage]);

const elementId = useId();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const ResourceMetadata = memo(
subection
headingClassName="pl-2"
>
<div className="pl-6 pr-2 pb-2 h-full relative">
<div className="pl-6 p-2 h-full relative">
<ResourceInteractionView
key={node.path}
resourceType={node.type}
Expand Down

0 comments on commit e433bb0

Please sign in to comment.