mirror of
https://github.com/balzack/databag.git
synced 2025-02-11 19:19:16 +00:00
fix console errors
This commit is contained in:
parent
681bea25f8
commit
7a21b8636f
@ -141,7 +141,7 @@ export function useAddTopic(contentKey) {
|
||||
}
|
||||
}
|
||||
};
|
||||
await conversation.actions.addTopic(type, message, state.assets);
|
||||
await conversation.actions.addTopic(type, message, [ ...state.assets ]);
|
||||
updateState({ busy: false, messageText: null, textColor: '#444444', textColorSet: false,
|
||||
textSize: 12, textSizeSet: false, assets: [] });
|
||||
clearObjects();
|
||||
|
@ -145,7 +145,7 @@ export function useConversation(cardId, channelId) {
|
||||
|
||||
let group = '';
|
||||
let clickable = [];
|
||||
const words = text == null ? '' : DOMPurify.sanitize(text).split(' ');
|
||||
const words = text == [] ? '' : DOMPurify.sanitize(text).split(' ');
|
||||
words.forEach((word, index) => {
|
||||
if (!!urlPattern.test(word)) {
|
||||
clickable.push(<span key={index}>{ group }</span>);
|
||||
|
Loading…
Reference in New Issue
Block a user