mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Library updates (#792)
* Upgrade Typescript to 4.0 * Update i18n-iso-countries to 6.0 * Update react-intl to 5.8.0 * Update jimp to 0.16.1 * Update apollo and graphql libraries * Update various libraries and fix linting/type errors * Refactor cache invalidation * Codegen refetch queries
This commit is contained in:
@@ -26,15 +26,14 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
</Link>
|
||||
));
|
||||
|
||||
const renderMovies = (movies: Partial<GQL.SceneMovie>[]) => {
|
||||
return movies.map((sceneMovie) =>
|
||||
const renderMovies = (scene: GQL.SlimSceneDataFragment) =>
|
||||
scene.movies.map((sceneMovie) =>
|
||||
!sceneMovie.movie ? undefined : (
|
||||
<Link to={NavUtils.makeMovieScenesUrl(sceneMovie.movie)}>
|
||||
<h6>{sceneMovie.movie.name}</h6>
|
||||
</Link>
|
||||
)
|
||||
);
|
||||
};
|
||||
|
||||
const renderSceneRow = (scene: GQL.SlimSceneDataFragment) => (
|
||||
<tr key={scene.id}>
|
||||
@@ -68,7 +67,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
|
||||
</Link>
|
||||
)}
|
||||
</td>
|
||||
<td>{renderMovies(scene.movies)}</td>
|
||||
<td>{renderMovies(scene)}</td>
|
||||
</tr>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user