refac: $user

This commit is contained in:
Timothy Jaeryang Baek committed 2025-03-31 20:32:12 -07:00
1 parent 1b7c125f00
commit e0ec2cdeb0
27 files changed
+57 -57

No files matched your search

@@ -19,7 +19,7 @@
let ollamaConfig = null;
onMount(async () => {
if ($user.role === 'admin') {
if ($user?.role === 'admin') {
await Promise.all([
(async () => {
ollamaConfig = await getOllamaConfig(localStorage.token);