MCPcopy Index your code
hub / github.com/chartbrew/chartbrew / _onRemove

Function _onRemove

client/src/containers/ProjectSettings.jsx:80–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 };
79
80 const _onRemove = () => {
81 setRemoveLoading(true);
82 setRemoveError(false);
83 dispatch(removeProject({ project_id: project.id }))
84 .then(() => {
85 navigate("/");
86 })
87 .catch(() => {
88 setRemoveLoading(false);
89 setRemoveError(true);
90 });
91 };
92
93 const _onSaveTimezone = (clear) => {
94 setLoadingTimezone(true);

Callers

nothing calls this directly

Calls 2

removeProjectFunction · 0.90
dispatchFunction · 0.50

Tested by

no test coverage detected