mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
[bugfix]: fix race condition for opening play queue/playlist details
This commit is contained in:
@@ -173,7 +173,7 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref<any>) => {
|
|||||||
|
|
||||||
const handleGridSizeChange = () => {
|
const handleGridSizeChange = () => {
|
||||||
if (tableConfig.autoFit) {
|
if (tableConfig.autoFit) {
|
||||||
tableRef?.current?.api.sizeColumnsToFit();
|
tableRef?.current?.api?.sizeColumnsToFit();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ export const PlaylistDetailSongListContent = ({ tableRef }: PlaylistDetailConten
|
|||||||
|
|
||||||
const handleGridSizeChange = () => {
|
const handleGridSizeChange = () => {
|
||||||
if (page.table.autoFit) {
|
if (page.table.autoFit) {
|
||||||
tableRef?.current?.api.sizeColumnsToFit();
|
tableRef?.current?.api?.sizeColumnsToFit();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user