Skip to content

Commit

Permalink
fix: reload schema when fetching project in electron (#3365)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Brown <asbrown002@gmail.com>
  • Loading branch information
yeze322 and a-b-r-o-w-n authored Jun 10, 2020
1 parent cd240fd commit 4d3fc66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Composer/packages/client/src/store/reducer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import get from 'lodash/get';
import set from 'lodash/set';
import has from 'lodash/has';
import merge from 'lodash/merge';
import memoize from 'lodash/memoize';
import { indexer, dialogIndexer, lgIndexer, luIndexer, autofixReferInDialog } from '@bfc/indexers';
import {
SensitiveProperties,
Expand Down Expand Up @@ -33,10 +32,10 @@ import createReducer from './createReducer';

const projectFiles = ['bot', 'botproj'];

const processSchema = memoize((projectId: string, schema: any) => ({
const processSchema = (projectId: string, schema: any) => ({
...schema,
definitions: dereferenceDefinitions(schema.definitions),
}));
});

// if user set value in terminal or appsetting.json, it should update the value in localStorage
const refreshLocalStorage = (botName: string, settings: DialogSetting) => {
Expand Down

0 comments on commit 4d3fc66

Please sign in to comment.