Do not show a "loading" datagrid for an empty playlist

This commit is contained in:
Deluan
2020-06-05 11:18:37 -04:00
parent c6f23139bc
commit 2adb290c34
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const PlaylistFilter = (props) => (
const PlaylistList = (props) => (
<List {...props} exporter={false} filters={<PlaylistFilter />}>
<Datagrid rowClick="show" isRowSelectable={(r) => isWritable(r.owner)}>
<Datagrid rowClick="show" isRowSelectable={(r) => isWritable(r && r.owner)}>
<TextField source="name" />
<TextField source="owner" />
<BooleanField source="public" />