Skip to content

Commit c270bf8

Browse files
authored
Merge pull request #512 from raheeliftikhar5/resp-layout-table-column-delete-fix
Responsive layout: Table column delete gives error
2 parents 5358d9e + edfeb4f commit c270bf8

File tree

2 files changed

+2
-34
lines changed

2 files changed

+2
-34
lines changed

client/packages/lowcoder/src/comps/comps/responsiveLayout/responsiveLayout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ class ResponsiveLayoutImplComp extends ResponsiveLayoutBaseComp implements ICont
277277
},
278278
} as CompAction;
279279
}
280-
if (value.type === "delete" && columns.length <= 1) {
280+
const { path } = action;
281+
if (value.type === "delete" && path[0] === 'columns' && columns.length <= 1) {
281282
messageInstance.warning(trans("responsiveLayout.atLeastOneColumnError"));
282283
// at least one column
283284
return this;

client/packages/lowcoder/src/pages/setting/idSource/createModal.tsx

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -176,39 +176,6 @@ function CreateModal(props: CreateModalProp) {
176176
</div>
177177
);
178178
})}
179-
{/* <Form.Item
180-
name="clientId"
181-
label="Client ID"
182-
rules={[{ required: true }]}
183-
>
184-
<Input
185-
placeholder={trans("idSource.formPlaceholder", {
186-
label: 'Client ID',
187-
})}
188-
autoComplete="off"
189-
/>
190-
</Form.Item>
191-
<Form.Item
192-
name="clientSecret"
193-
label={
194-
<PasswordLabel>
195-
<span>{"Client secret"}:</span>
196-
<CloseEyeIcon />
197-
</PasswordLabel>
198-
}
199-
rules={[{
200-
required: true,
201-
message: trans("idSource.formPlaceholder", {
202-
label: 'Client secret',
203-
})
204-
}]}
205-
>
206-
<Input
207-
type="password"
208-
placeholder={trans("idSource.encryptedServer")}
209-
autoComplete="off"
210-
/>
211-
</Form.Item> */}
212179
</FormStyled>
213180
</CustomModalStyled>
214181
);

0 commit comments

Comments
 (0)