mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-05 22:38:48 +00:00
bug-fix: user can add values to auto-generated column white creating updating rows (#5189)
This commit is contained in:
parent
f75460e662
commit
6af7987b8d
2 changed files with 4 additions and 2 deletions
|
|
@ -74,7 +74,8 @@ export const CreateRow = ({ currentState, optionchanged, options, darkMode }) =>
|
|||
}
|
||||
|
||||
const RenderColumnOptions = ({ column, value, id }) => {
|
||||
const displayColumns = columns.map(({ accessor }) => ({
|
||||
const filteredColumns = columns.filter(({ isPrimaryKey }) => !isPrimaryKey);
|
||||
const displayColumns = filteredColumns.map(({ accessor }) => ({
|
||||
value: accessor,
|
||||
label: accessor,
|
||||
}));
|
||||
|
|
|
|||
|
|
@ -184,7 +184,8 @@ export const UpdateRows = ({ currentState, optionchanged, options, darkMode }) =
|
|||
};
|
||||
|
||||
const RenderColumnOptions = ({ column, value, id }) => {
|
||||
const displayColumns = columns.map(({ accessor }) => ({
|
||||
const filteredColumns = columns.filter(({ isPrimaryKey }) => !isPrimaryKey);
|
||||
const displayColumns = filteredColumns.map(({ accessor }) => ({
|
||||
value: accessor,
|
||||
label: accessor,
|
||||
}));
|
||||
|
|
|
|||
Loading…
Reference in a new issue