fix: fix edit instance
fix edit instance in the instance detail page for the non-admin user Change-Id: I300a3020b8402ca9638e1139a14c460a6a0a2660
This commit is contained in:
parent
f70772ecc8
commit
7513e64f7c
@ -116,11 +116,14 @@ export class ServerStore extends Base {
|
|||||||
noReminder: true,
|
noReminder: true,
|
||||||
all_projects,
|
all_projects,
|
||||||
});
|
});
|
||||||
item.itemInList = result[0];
|
item.itemInList = result.find((it) => it.id === id);
|
||||||
} else {
|
} else {
|
||||||
const store = new RecycleBinStore();
|
const store = new RecycleBinStore();
|
||||||
const result = await store.fetchList({ uuid: id, all_projects });
|
const result = await store.fetchList({
|
||||||
item.itemInList = result[0];
|
uuid: id,
|
||||||
|
all_projects,
|
||||||
|
});
|
||||||
|
item.itemInList = result.find((it) => it.id === id);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
Loading…
Reference in New Issue
Block a user