mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-19 14:05:10 +02:00
components/Message: fix eslint errors
This commit is contained in:
parent
6241eed8f4
commit
6c9d2c36a1
|
@ -150,10 +150,14 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
|
|
||||||
const messageComponent = computed(() => {
|
const messageComponent = computed(() => {
|
||||||
return "message-" + props.message.type;
|
return "message-" + (props.message.type || "invalid"); // TODO: force existence of type in sharedmsg
|
||||||
});
|
});
|
||||||
|
|
||||||
const isAction = () => {
|
const isAction = () => {
|
||||||
|
if (!props.message.type) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return typeof MessageTypes["message-" + props.message.type] !== "undefined";
|
return typeof MessageTypes["message-" + props.message.type] !== "undefined";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue