fix: initNewChat

This commit is contained in:
Timothy J. Baek 2023-12-26 14:41:41 -08:00
parent 8f2b691ee0
commit cc9e299814
2 changed files with 3 additions and 1 deletions

2
run.sh
View File

@ -1,5 +1,5 @@
docker stop ollama-webui || true docker stop ollama-webui || true
docker rm ollama-webui || true docker rm ollama-webui || true
docker build -t ollama-webui . docker build -t ollama-webui .
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app --name ollama-webui --restart always ollama-webui docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend --name ollama-webui --restart always ollama-webui
docker image prune -f docker image prune -f

View File

@ -64,6 +64,8 @@
////////////////////////// //////////////////////////
const initNewChat = async () => { const initNewChat = async () => {
window.history.replaceState(history.state, '', `/`);
console.log('initNewChat'); console.log('initNewChat');
await chatId.set(''); await chatId.set('');