fix(web): allow media panel without refresh callback

This commit is contained in:
2026-09-11 10:05:34 -03:00
parent 082354320b
commit b744a77f49
@@ -52,12 +52,12 @@ export function AssetMediaPanel({
assetId, assetId,
assetName, assetName,
canManage, canManage,
onChanged, onChanged = () => undefined,
}: { }: {
assetId: string; assetId: string;
assetName: string; assetName: string;
canManage: boolean; canManage: boolean;
onChanged: () => void; onChanged?: () => void;
}) { }) {
const fileRef = useRef<HTMLInputElement | null>(null); const fileRef = useRef<HTMLInputElement | null>(null);
const [items, setItems] = useState<AssetMedia[]>([]); const [items, setItems] = useState<AssetMedia[]>([]);