This commit is contained in:
mike12345567 2021-07-16 18:26:17 +01:00
parent c248844a24
commit 4a192b5a4b
2 changed files with 2 additions and 9 deletions

View File

@ -1,12 +1,5 @@
<script>
import {
Body,
Button,
Divider,
Heading,
Input,
Layout,
} from "@budibase/bbui"
import { Body, Button, Divider, Heading, Input, Layout } from "@budibase/bbui"
import { goto } from "@roxi/routify"
import { auth } from "stores/portal"
import Logo from "assets/bb-emblem.svg"

View File

@ -81,7 +81,7 @@ export function createAuthStore() {
setUser(null)
},
updateSelf: async fields => {
const newUser = { ...get(user), ...fields }
const newUser = { ...get(auth).user, ...fields }
const response = await api.post("/api/admin/users/self", newUser)
if (response.status === 200) {
setUser(newUser)