mirror of
https://github.com/nasa/openmct.git
synced 2025-04-15 06:56:43 +00:00
[Legacy Persistence Adapter] readObject to handle possibility of two arguments (#3392)
* check for two arguments to catch cases where key and namespace are sent in separately * method will always receive two arguments, updated to reflect that * removing object utils, no longer used
This commit is contained in:
parent
7879752f47
commit
de614ff606
@ -20,8 +20,6 @@
|
||||
* at runtime from the About dialog for additional information.
|
||||
*****************************************************************************/
|
||||
|
||||
import objectUtils from 'objectUtils';
|
||||
|
||||
export default class LegacyPersistenceAdapter {
|
||||
constructor(openmct) {
|
||||
this.openmct = openmct;
|
||||
@ -39,8 +37,11 @@ export default class LegacyPersistenceAdapter {
|
||||
return this.openmct.objects.save(legacyDomainObject.useCapability('adapter'));
|
||||
}
|
||||
|
||||
readObject(keystring) {
|
||||
let identifier = objectUtils.parseKeyString(keystring);
|
||||
readObject(space, key) {
|
||||
const identifier = {
|
||||
namespace: space,
|
||||
key: key
|
||||
};
|
||||
|
||||
return this.openmct.legacyObject(this.openmct.objects.get(identifier));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user