mirror of
https://github.com/JHUAPL/STIXMODELER_UI.git
synced 2026-01-08 22:07:56 -05:00
Merge pull request #24 from jminnick/ex-ref-master
make objects, objects in ext ref
This commit is contained in:
@@ -101,7 +101,7 @@ const ReferenceBlock = (props) => {
|
||||
|
||||
blocks.push(
|
||||
<div key={uuid()} className="er-block-row">
|
||||
<div>{item}: {props.kv[item]} {remove}</div>
|
||||
<div>{item}: {JSON.stringify(props.kv[item])} {remove}</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -448,6 +448,13 @@ export default class App {
|
||||
changeERValue(input, select, idx) {
|
||||
let nodeProp = this.selected.properties["external_references"].value;
|
||||
|
||||
try {
|
||||
if (typeof JSON.parse(input) === "object") {
|
||||
input = JSON.parse(input);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
nodeProp[idx][select] = input;
|
||||
|
||||
this.bundle.objects.map(object => {
|
||||
|
||||
Reference in New Issue
Block a user