Fix chat history not displaying
This commit is contained in:
parent
ac35a03e62
commit
15360b83df
@ -37,7 +37,7 @@
|
||||
componentSettings = computed(() => store.state.components.chatBox),
|
||||
messages = computed(() => {
|
||||
if(componentSettings.value!.messageHistory) {
|
||||
return store.state.chat.messages.slice(componentSettings.value!.messageHistory);
|
||||
return store.state.chat.messages.slice(0, componentSettings.value!.messageHistory);
|
||||
} else {
|
||||
return store.state.chat.messages;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user