Skip to content

Commit

Permalink
make sure to not reset the metadata already fetched
Browse files Browse the repository at this point in the history
  • Loading branch information
rogchap committed Nov 20, 2020
1 parent 2801231 commit 7128dd0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/views/InputPane.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
let metadata = [];
let mapItems = {};
const reset = () => {
const reset = all => {
methodInput = {
full_name: "",
fields: [],
}
state = {}
metadata = [];
if (all) {
metadata = [];
}
}
wails.Events.On("wombat:method_input_changed", async data => {
Expand All @@ -37,7 +39,7 @@
});
wails.Events.On("wombat:client_connect_started", async (addr) => {
reset()
reset(true)
const m = await backend.api.GetMetadata(addr);
if (m) {
metadata = m;
Expand Down

0 comments on commit 7128dd0

Please sign in to comment.