Don't get user resources.
This commit is contained in:
parent
b8a9b7fba5
commit
c74e3b3fc4
2 changed files with 1 additions and 15 deletions
|
@ -67,7 +67,7 @@ function Channel({ id, data }: { id: number; data: PlanItem[] }) {
|
|||
function LibraryColumn() {
|
||||
const [sauce, setSauce] = useState("None");
|
||||
const dispatch = useDispatch();
|
||||
const { auxPlaylists, managedPlaylists, userPlaylists } = useSelector(
|
||||
const { auxPlaylists, managedPlaylists } = useSelector(
|
||||
(state: RootState) => state.showplan
|
||||
);
|
||||
|
||||
|
@ -95,12 +95,6 @@ function LibraryColumn() {
|
|||
Choose a library
|
||||
</option>
|
||||
<option value={"CentralMusicLibrary"}>Central Music Library</option>
|
||||
<option disabled>Personal Resources</option>
|
||||
{userPlaylists.map((playlist: any) => (
|
||||
<option key={playlist.managedid} value={playlist.managedid}>
|
||||
{playlist.title}
|
||||
</option>
|
||||
))}
|
||||
<option disabled>Shared Resources</option>
|
||||
{auxPlaylists.map((playlist: any) => (
|
||||
<option
|
||||
|
|
|
@ -398,14 +398,6 @@ export const getShowplan = (timeslotId: number): AppThunk => async (
|
|||
};
|
||||
|
||||
export const getPlaylists = (): AppThunk => async (dispatch) => {
|
||||
try {
|
||||
const userPlaylists = await api.getUserPlaylists();
|
||||
|
||||
dispatch(showplan.actions.addUserPlaylists(userPlaylists));
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
|
||||
try {
|
||||
const managedPlaylists = await api.getManagedPlaylists();
|
||||
dispatch(showplan.actions.addManagedPlaylists(managedPlaylists));
|
||||
|
|
Loading…
Reference in a new issue