fix: ignore the sort_by when no data
This commit is contained in:
@@ -153,6 +153,7 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
|
||||
await form.current?.form?.validateFields();
|
||||
if (!parameters.model) return;
|
||||
const params = generateParams();
|
||||
console.log('generateParams:', params);
|
||||
setParams({
|
||||
...parameters,
|
||||
seed: params.seed
|
||||
|
||||
@@ -72,5 +72,6 @@ export const imgInitialValues = {
|
||||
size: '512x512',
|
||||
response_format: 'b64_json',
|
||||
width: 512,
|
||||
height: 512
|
||||
height: 512,
|
||||
random_seed: true
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user