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