hotfix: don't load patterns from db
This commit is contained in:
parent
79f7938b33
commit
40ba5d4465
1 changed files with 3 additions and 3 deletions
|
|
@ -7,7 +7,7 @@ import './Repl.css';
|
|||
import { createClient } from '@supabase/supabase-js';
|
||||
import { nanoid } from 'nanoid';
|
||||
import { writeText } from '@tauri-apps/plugin-clipboard-manager';
|
||||
import { $featuredPatterns, loadDBPatterns } from '@src/user_pattern_utils.mjs';
|
||||
import { $featuredPatterns /* , loadDBPatterns */ } from '@src/user_pattern_utils.mjs';
|
||||
|
||||
// Create a single supabase client for interacting with your database
|
||||
export const supabase = createClient(
|
||||
|
|
@ -16,9 +16,9 @@ export const supabase = createClient(
|
|||
);
|
||||
|
||||
let dbLoaded;
|
||||
if (typeof window !== 'undefined') {
|
||||
/* if (typeof window !== 'undefined') {
|
||||
dbLoaded = loadDBPatterns();
|
||||
}
|
||||
} */
|
||||
|
||||
export async function initCode() {
|
||||
// load code from url hash (either short hash from database or decode long hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue