()
| 105 | }; |
| 106 | |
| 107 | const _onSaveDescription = () => { |
| 108 | setLoadingDescription(true); |
| 109 | dispatch(updateProject({ project_id: project.id, data: { description: projectDescription } })) |
| 110 | .then((resp) => { |
| 111 | setLoadingDescription(false); |
| 112 | if (resp.error) { |
| 113 | toast.error("There was a problem updating the dashboard description. Please try again."); |
| 114 | return; |
| 115 | } |
| 116 | dispatch(changeActiveProject(project.id)); |
| 117 | toast.success("The description was updated successfully!"); |
| 118 | }) |
| 119 | .catch(() => { |
| 120 | setLoadingDescription(false); |
| 121 | toast.error("There was a problem updating the dashboard description. Please try again."); |
| 122 | }); |
| 123 | }; |
| 124 | |
| 125 | const _onGetMachineTimezone = () => { |
| 126 | const tz = Intl.DateTimeFormat().resolvedOptions().timeZone; |
nothing calls this directly
no test coverage detected