mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 23:36:06 +00:00
fix warning in console
This commit is contained in:
parent
90f2528feb
commit
a8b47baa5a
|
@ -54,7 +54,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
|
|||
api.set({
|
||||
width: "100%",
|
||||
});
|
||||
api({
|
||||
api.start({
|
||||
height: `${routeMeta?.height ?? 0}px`,
|
||||
});
|
||||
} else if (oldData?.height === undefined && data.height !== undefined) {
|
||||
|
@ -63,7 +63,7 @@ function RouterBase(props: { id: string; children: ReactNode }) {
|
|||
width: `${routeMeta?.width ?? 0}px`,
|
||||
});
|
||||
} else {
|
||||
api({
|
||||
api.start({
|
||||
height: `${routeMeta?.height ?? 0}px`,
|
||||
width: `${routeMeta?.width ?? 0}px`,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue