diff --git a/.prettierignore b/.prettierignore index bdcce08cc..82c491257 100644 --- a/.prettierignore +++ b/.prettierignore @@ -310,3 +310,7 @@ dist # cypress artifacts cypress/videos cypress/screenshots + + + +/static/* \ No newline at end of file diff --git a/cypress/e2e/chat.cy.ts b/cypress/e2e/chat.cy.ts index 6f5fa36c9..ced998104 100644 --- a/cypress/e2e/chat.cy.ts +++ b/cypress/e2e/chat.cy.ts @@ -62,18 +62,17 @@ describe('Settings', () => { .should('exist'); // spy on requests const spy = cy.spy(); - cy.intercept("GET", "/api/v1/chats/*", spy); + cy.intercept('GET', '/api/v1/chats/*', spy); // Open context menu cy.get('#chat-context-menu-button').click(); // Click share button cy.get('#chat-share-button').click(); // Check if the share dialog is visible cy.get('#copy-and-share-chat-button').should('exist'); - cy.wrap({}, { timeout: 5000 }) - .should(() => { - // Check if the request was made twice (once for to replace chat object and once more due to change event) - expect(spy).to.be.callCount(2); - }); + cy.wrap({}, { timeout: 5000 }).should(() => { + // Check if the request was made twice (once for to replace chat object and once more due to change event) + expect(spy).to.be.callCount(2); + }); }); }); }); diff --git a/src/lib/components/chat/ShareChatModal.svelte b/src/lib/components/chat/ShareChatModal.svelte index ebb0f171d..e4c40bbb4 100644 --- a/src/lib/components/chat/ShareChatModal.svelte +++ b/src/lib/components/chat/ShareChatModal.svelte @@ -65,7 +65,7 @@ return false; } return chat.id !== _chat.id || chat.share_id !== _chat.share_id; - } + }; $: if (show) { (async () => { diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 2a999a807..3305da840 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -82,7 +82,7 @@