lint and format combined
This commit is contained in:
parent
c8dc8d7f55
commit
64c5bbae29
3 changed files with 3 additions and 4 deletions
3
.github/workflows/server.yml
vendored
3
.github/workflows/server.yml
vendored
|
@ -81,12 +81,11 @@ jobs:
|
|||
with:
|
||||
node-version: '22.11.0'
|
||||
|
||||
- name: WebUI - Run lint
|
||||
- name: WebUI - Install dependencies
|
||||
id: webui_lint
|
||||
run: |
|
||||
cd examples/server/webui
|
||||
npm ci
|
||||
npm run lint
|
||||
|
||||
- name: WebUI - Check code format
|
||||
id: webui_format
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "tsc -b && vite build",
|
||||
"format": "prettier --write .",
|
||||
"format": "eslint . && prettier --write .",
|
||||
"lint": "eslint .",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
|
|
|
@ -41,7 +41,7 @@ export default function ChatScreen() {
|
|||
}, [viewingConversation?.id]);
|
||||
|
||||
const sendNewMessage = async () => {
|
||||
if (inputMsg.trim().length === 0) return;
|
||||
if (inputMsg.trim().length === 0 || isGenerating(currConvId)) return;
|
||||
const convId = viewingConversation?.id ?? StorageUtils.getNewConvId();
|
||||
const lastInpMsg = inputMsg;
|
||||
setInputMsg('');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue