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,
assetName,
canManage,
onChanged,
onChanged = () => undefined,
}: {
assetId: string;
assetName: string;
canManage: boolean;
onChanged: () => void;
onChanged?: () => void;
}) {
const fileRef = useRef<HTMLInputElement | null>(null);
const [items, setItems] = useState<AssetMedia[]>([]);