We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49dd25 commit c3c5bfeCopy full SHA for c3c5bfe
src/hooks/useColumns/index.tsx
@@ -176,7 +176,8 @@ function useColumns<RecordType>(
176
// >>> Insert expand column if not exist
177
if (!cloneColumns.includes(EXPAND_COLUMN)) {
178
const expandColIndex = expandIconColumnIndex || 0;
179
- if ((expandColIndex && expandColIndex >= 0) || fixed === 'left' || !fixed) {
+ console.log(expandColIndex);
180
+ if (expandColIndex >= 0 && (expandColIndex || fixed === 'left' || !fixed)) {
181
cloneColumns.splice(expandColIndex, 0, EXPAND_COLUMN);
182
}
183
if (fixed === 'right') {
0 commit comments