MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / onChangeGraphName

Function onChangeGraphName

src/templates/SavedGraphsTemplate.tsx:39–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 const [editMode, setEditMode] = useState<boolean>(false);
38
39 const onChangeGraphName = async () => {
40 graph.name = graphName;
41 await updatePersonalGraph(userID, graph);
42 setEditMode(false);
43 };
44
45 // Hotkeys for the graph name input
46 // Enter: Save the graph name

Callers 1

GraphCardFunction · 0.85

Calls 1

updatePersonalGraphFunction · 0.90

Tested by

no test coverage detected