Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Drop broken/incomplete logic for prompting for event schema values #258

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions src/simulationMachine.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,22 +283,6 @@ export const simulationMachine = simModel.createMachine(
},
'SERVICE.SEND': {
actions: [
(ctx, e) => {
const eventSchema =
ctx.serviceDataMap[ctx.currentSessionId!]!.machine.schema
?.events?.[e.event.type];
const eventToSend = { ...e.event };

if (eventSchema) {
Object.keys(eventSchema.properties).forEach((prop) => {
const value = prompt(
`Enter value for "${prop}" (${eventSchema.properties[prop].type}):`,
);

eventToSend.data[prop] = value;
});
}
},
send(
(ctx, e) => {
return {
Expand Down