Skip to content

Commit 64c5bba

Browse files
committed
lint and format combined
1 parent c8dc8d7 commit 64c5bba

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/server.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ jobs:
8181
with:
8282
node-version: '22.11.0'
8383

84-
- name: WebUI - Run lint
84+
- name: WebUI - Install dependencies
8585
id: webui_lint
8686
run: |
8787
cd examples/server/webui
8888
npm ci
89-
npm run lint
9089
9190
- name: WebUI - Check code format
9291
id: webui_format

examples/server/webui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -b && vite build",
9-
"format": "prettier --write .",
9+
"format": "eslint . && prettier --write .",
1010
"lint": "eslint .",
1111
"preview": "vite preview"
1212
},

examples/server/webui/src/components/ChatScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default function ChatScreen() {
4141
}, [viewingConversation?.id]);
4242

4343
const sendNewMessage = async () => {
44-
if (inputMsg.trim().length === 0) return;
44+
if (inputMsg.trim().length === 0 || isGenerating(currConvId)) return;
4545
const convId = viewingConversation?.id ?? StorageUtils.getNewConvId();
4646
const lastInpMsg = inputMsg;
4747
setInputMsg('');

0 commit comments

Comments
 (0)