fix(web): allow history panel without manual refresh key
This commit is contained in:
@@ -34,10 +34,10 @@ function supportsFunctionChange(code: string, name: string): boolean {
|
|||||||
|
|
||||||
export function AssetHistoryPanel({
|
export function AssetHistoryPanel({
|
||||||
assetId,
|
assetId,
|
||||||
refreshKey,
|
refreshKey = 0,
|
||||||
}: {
|
}: {
|
||||||
assetId: string;
|
assetId: string;
|
||||||
refreshKey: number;
|
refreshKey?: number;
|
||||||
}) {
|
}) {
|
||||||
const [versions, setVersions] = useState<AssetVersionSummary[]>([]);
|
const [versions, setVersions] = useState<AssetVersionSummary[]>([]);
|
||||||
const [total, setTotal] = useState(0);
|
const [total, setTotal] = useState(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user