Skip to content

Commit

Permalink
Merge pull request #994 from funmusicplace/various-fixes
Browse files Browse the repository at this point in the history
fix: make sure drafts returns tracks
  • Loading branch information
simonv3 authored Jan 29, 2025
2 parents 8b4d5e7 + 3c18a78 commit 5aa495f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { css } from "@emotion/css";
import { bp } from "../../../constants";
import AutoCompleteTrackGroup from "../AutoCompleteTrackGroup";
import { useTranslation } from "react-i18next";
import Tabs from "../Tabs";
import BulkTrackUpload from "components/ManageArtist/BulkTrackUpload";

const InsertMirloWidgetButton: React.FC<{
Expand Down Expand Up @@ -136,8 +135,12 @@ const InsertMirloWidgetButton: React.FC<{
flex-direction: column;
display: flex;
span {
margin: 0.5rem 0;
> span {
padding: 1rem;
font-weight: bold;
border: 1px dashed var(--mi-darken-xx-background-color);
display: blox;
margin-top: 1rem;
}
button {
Expand Down
3 changes: 3 additions & 0 deletions src/routers/v1/manage/artists/{artistId}/drafts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export default function () {
where: {
isDrafts: true,
},
include: {
tracks: true,
},
});

if (!draftAlbum) {
Expand Down

0 comments on commit 5aa495f

Please sign in to comment.