fix: remove unnecessary console.log

This commit is contained in:
James Xylight committed 2025-06-22 10:59:50 -07:00
1 parent 7f60470290
commit 6cc38f7477
4 files changed
+1 -12

No files matched your search

@@ -109,7 +109,6 @@
if (passedCommunity) {
data.community = passedCommunity
communitySearch = passedCommunity.name
console.log(communitySearch)
} else {
const list = await client().listCommunities({
type_: 'All',
@@ -169,8 +168,6 @@
if (!post) throw new Error('Failed to edit post')
console.log(`Edited post ${post?.post_view.post.id}`)
onsubmit?.(post.post_view)
} else {
const post = await client().createPost({
@@ -186,8 +183,6 @@
if (!post) throw new Error('Failed to upload post')
console.log(`Uploaded post ${post?.post_view.post.id}`)
saveDraft = false
onsubmit?.(post.post_view)
}
+1 -1
View File
@@ -47,7 +47,7 @@ export const optimizeImageURL = (
return url.toString()
} catch (e) {
console.log(e)
console.error(e)
return urlStr
}
}
-4
View File
@@ -41,10 +41,6 @@
let el = $state<HTMLElement>()
let hasHistoryEntry = false
$effect(() => {
console.log(modalId, open, hasHistoryEntry)
})
$effect(() => {
if (open && modalId && !hasHistoryEntry) {
pushState('', {
-2
View File
@@ -8,8 +8,6 @@ export async function load({ params, url, fetch }) {
(url.searchParams.get('type') as 'comments' | 'posts') || 'posts'
const sort: SortType = (url.searchParams.get('sort') as SortType) || 'New'
console.log(type)
const user = await getClient(undefined, fetch).getPersonDetails({
limit: 20,
page: page,