[bugfix]: fix race condition for opening play queue/playlist details

This commit is contained in:
Kendall Garner 2024-01-24 21:15:11 -08:00
parent 26102bd70a
commit 362a88b6bc
No known key found for this signature in database
GPG key ID: 18D2767419676C87
2 changed files with 2 additions and 2 deletions

View file

@ -173,7 +173,7 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref<any>) => {
const handleGridSizeChange = () => {
if (tableConfig.autoFit) {
tableRef?.current?.api.sizeColumnsToFit();
tableRef?.current?.api?.sizeColumnsToFit();
}
};

View file

@ -140,7 +140,7 @@ export const PlaylistDetailSongListContent = ({ tableRef }: PlaylistDetailConten
const handleGridSizeChange = () => {
if (page.table.autoFit) {
tableRef?.current?.api.sizeColumnsToFit();
tableRef?.current?.api?.sizeColumnsToFit();
}
};