Dashboards: Remove unique name constraints (#90687)
This commit is contained in:
@@ -35,8 +35,7 @@ func ToFolderErrorResponse(err error) response.Response {
|
||||
return response.JSON(http.StatusNotFound, util.DynMap{"status": "not-found", "message": dashboards.ErrFolderNotFound.Error()})
|
||||
}
|
||||
|
||||
if errors.Is(err, dashboards.ErrFolderSameNameExists) ||
|
||||
errors.Is(err, dashboards.ErrFolderWithSameUIDExists) {
|
||||
if errors.Is(err, dashboards.ErrFolderWithSameUIDExists) {
|
||||
return response.Error(http.StatusConflict, err.Error(), nil)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user