Typos, part II
parent
f09b1eba87
commit
51a090fee6
|
@ -51,7 +51,7 @@ describe("determineDropdown", () => {
|
|||
args: {
|
||||
label: "x",
|
||||
data_value: {
|
||||
kind: "point_group", args: { resource_id: 12 }
|
||||
kind: "point_group", args: { point_group_id: 12 }
|
||||
}
|
||||
}
|
||||
}, buildResourceIndex([pg]).index);
|
||||
|
|
|
@ -118,7 +118,7 @@ export const determineDropdown =
|
|||
const toolSlot = findSlotByToolId(resources, tool_id);
|
||||
return formatTool(findToolById(resources, tool_id), toolSlot);
|
||||
case "point_group":
|
||||
const value = data_value.args.resource_id;
|
||||
const value = data_value.args.point_group_id;
|
||||
const uuid2 = findResourceById(resources, "PointGroup", value);
|
||||
const group = findPointGroup(resources, uuid2);
|
||||
return {
|
||||
|
|
|
@ -128,12 +128,12 @@ const createNewVariable = (props: NewVarProps): VariableNode | undefined => {
|
|||
case "parameter": return newParameter(props);
|
||||
case "Coordinate": return manualEntry(ddi.value)(props);
|
||||
case "PointGroup":
|
||||
const resource_id = parseInt("" + ddi.value, 10);
|
||||
const point_group_id = parseInt("" + ddi.value, 10);
|
||||
return {
|
||||
kind: "parameter_application",
|
||||
args: {
|
||||
label: props.identifierLabel,
|
||||
data_value: { kind: "point_group", args: { resource_id } }
|
||||
data_value: { kind: "point_group", args: { point_group_id } }
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue