Skip to content

Commit 8aa6b5d

Browse files
committed
Migrate loaded STAC entities in App Mode
1 parent e76574e commit 8aa6b5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/store/editor.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Utils from '../utils';
33
import { Job, Service, UserProcess } from '@openeo/js-client';
44
import { ProcessGraph } from '@openeo/js-processgraphs';
55
import FormatRegistry from '../formats/formatRegistry.js';
6+
import StacMigrate from '@radiantearth/stac-migrate';
67

78
const serverStorage = "serverUrls";
89

@@ -157,6 +158,10 @@ export default {
157158
};
158159
},
159160
setAppModeData(state, data) {
161+
if (data.type) {
162+
data = StacMigrate.stac(data, false);
163+
}
164+
160165
Vue.set(state.appMode, 'data', data);
161166

162167
let process, title, expires;

0 commit comments

Comments
 (0)