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

View File

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

View File

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