File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " emulators-ui" ,
3- "version" : " 0.72.6 " ,
3+ "version" : " 0.72.7 " ,
44 "description" : " Emulators UI" ,
55 "main" : " dist/emulators-ui.js" ,
66 "types" : " dist/types/emulators-ui.d.ts" ,
Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ export type LegacyLayersConfig = {[index: string]: LegacyLayerConfig};
7575
7676export function extractLayersConfig ( config : any ) : LayersConfig | LegacyLayersConfig | null {
7777 if ( config . layersConfig !== undefined ) {
78+ if ( config . layersConfig . version === 1 ) {
79+ migrateV1ToV2 ( config . layersConfig ) ;
80+ }
81+
7882 return config . layersConfig ;
7983 }
8084
8185 if ( config . layers !== undefined ) {
82- if ( config . layers . version === 1 ) {
83- migrateV1ToV2 ( config ) ;
84- }
85-
8686 return config . layers ;
8787 }
8888
You can’t perform that action at this time.
0 commit comments