Linting.
This commit is contained in:
parent
d157285918
commit
d6ae82e719
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue