Skip to content

Commit

Permalink
Fix Verify step
Browse files Browse the repository at this point in the history
  • Loading branch information
ericyd committed Feb 1, 2024
1 parent 7a9de51 commit 8eaa0c3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/ui/public/app/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import fieldData from './fieldData';
import v4Fields from './v4fields';
import axios from 'axios';
import { get } from 'lodash';
import { toRaw } from 'vue';

const initStore = (config, ui) => createStore({
state: {
Expand Down Expand Up @@ -132,8 +133,10 @@ const initStore = (config, ui) => createStore({
await context.dispatch('createFilter', filterConfig);
}
context.state.filters.forEach(filter => {
flow.steps.push(filter);
});
// the flow gets passed back to the app via a window.postMessage call, which clones objects passed in the message.
// As of Vuex 4, state items are Proxy objects, which cannot be cloned, so we have to use `toRaw()`.
flow.steps.push(toRaw(filter));
});
}
context.state.ui.create({ flow });
}
Expand Down

0 comments on commit 8eaa0c3

Please sign in to comment.