Skip to content

Commit

Permalink
fix autorename changing things it should not
Browse files Browse the repository at this point in the history
  • Loading branch information
Ell1ott committed Feb 28, 2024
1 parent d173035 commit 85e831a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/api/apiStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { writable } from 'svelte/store';
import { get, writable } from 'svelte/store';
import type ApiHandler from '.';
import type { AuthorizerState } from 'akademia-authorizer-svelte/types';
import { getContext } from 'svelte';
Expand Down
6 changes: 3 additions & 3 deletions src/routes/workspace/editor/Tiptap.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import { Title } from '$lib/editor/extensions/title';
import { activeFile } from '../../store';
import { fileStore, type FileInfo } from '@/api/apiStore';
import { editor } from './eddocumentStore';
import { editor } from './editorStore';
let state: AuthorizerState;
Expand Down Expand Up @@ -56,7 +56,7 @@
provider = new HocuspocusProvider({
url: 'wss://akademia-backend.arctix.dev',
token: state.token.access_token,
name: 'document.'+initActiveFile.id,
name: 'document.' + initActiveFile.id,
onAuthenticationFailed: () => {
$editor.destroy();
provider.destroy();
Expand Down Expand Up @@ -129,7 +129,7 @@
}
console.log('steps', steps);
const typedLetter: string = steps[0].slice?.content?.content[0]?.text;
ifdocumentStoreetter) return false;
if (!typedLetter) return false;
const regex = /^[a-z]$/;
Expand Down

0 comments on commit 85e831a

Please sign in to comment.