fix: remove unnecessary console.log
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ export const optimizeImageURL = (
|
||||
|
||||
return url.toString()
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
console.error(e)
|
||||
return urlStr
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,10 +41,6 @@
|
||||
let el = $state<HTMLElement>()
|
||||
let hasHistoryEntry = false
|
||||
|
||||
$effect(() => {
|
||||
console.log(modalId, open, hasHistoryEntry)
|
||||
})
|
||||
|
||||
$effect(() => {
|
||||
if (open && modalId && !hasHistoryEntry) {
|
||||
pushState('', {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user