-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from solacecommunity/bug/message-meta-mismatch
Fix message and metadata mismatch
- Loading branch information
Showing
3 changed files
with
264 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
import classes from './styles.module.css'; | ||
|
||
export default function MessagePayloadView({ message }) { | ||
const messageUndefined = message === undefined; | ||
const payloadUndefined = message?.payload === undefined; | ||
|
||
return ( | ||
<pre className={classes.wrapText}>{message?.payload || ''}</pre> | ||
messageUndefined ? 'Please select a message.' : | ||
payloadUndefined ? 'Payload unavailable.' : | ||
<pre className={classes.wrapText}>{message?.payload || ''}</pre> | ||
) | ||
} |
Oops, something went wrong.