Fix change fields
This commit is contained in:
parent
953c12a0c6
commit
7c373697f0
|
@ -32,10 +32,9 @@ export const ProfileSettingsPage = (props: PageProps) => {
|
|||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
|
||||
console.log('!!! resp:', resp)
|
||||
} catch (e) {
|
||||
const resp = e.response
|
||||
} catch (error) {
|
||||
console.log('!!! error', error)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -182,7 +181,6 @@ export const ProfileSettingsPage = (props: PageProps) => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<pre>{JSON.stringify(form, null, 2)}</pre>
|
||||
</div>
|
||||
</Show>
|
||||
</PageWrap>
|
||||
|
|
|
@ -34,7 +34,7 @@ const useProfileForm = () => {
|
|||
await loadAuthor({ slug: currentSlug() })
|
||||
setForm({
|
||||
name: currentAuthor()?.name,
|
||||
slug: currentAuthor()?.name,
|
||||
slug: currentAuthor()?.slug,
|
||||
bio: currentAuthor()?.bio,
|
||||
userpic: currentAuthor()?.userpic,
|
||||
links: currentAuthor()?.links
|
||||
|
|
Loading…
Reference in New Issue
Block a user