Typos, part II

pull/1492/head
Rick Carlino 2019-10-03 14:25:33 -05:00
parent f09b1eba87
commit 51a090fee6
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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 {

View File

@ -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 } }
}
};
}