mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
possibly dealed with setting addresses
This commit is contained in:
parent
13c5ae08d9
commit
ad04704c3e
7 changed files with 65 additions and 17 deletions
|
@ -31,7 +31,11 @@ export const getStoredMap = ({ name }) => axios.get(API.GET_MAP, {
|
|||
name,
|
||||
action: 'load'
|
||||
}
|
||||
}).then(result => (result && result.data && result.data.data && { ...result.data.data, owner: (result.data.owner || null) }));
|
||||
}).then(result => (result && result.data && result.data.data && {
|
||||
...result.data.data,
|
||||
owner: (result.data.owner || null),
|
||||
address: (result.data.name || name),
|
||||
}));
|
||||
|
||||
export const postMap = ({
|
||||
title, address, route, stickers, id, token, force,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue