mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
[bugfix]: fix race condition for opening play queue/playlist details
This commit is contained in:
parent
26102bd70a
commit
362a88b6bc
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue