mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
fix: skip the blank last line of a user CSV import (#31374)
This commit is contained in:
parent
fcb0af3fd4
commit
db697c7e61
1 changed files with 1 additions and 1 deletions
|
|
@ -78,7 +78,7 @@
|
|||
const columns = row.split(',').map((col) => col.trim());
|
||||
console.debug(idx, columns);
|
||||
|
||||
if (idx > 0) {
|
||||
if (idx > 0 && !(columns.length === 1 && columns[0] === '')) {
|
||||
if (
|
||||
columns.length === 4 &&
|
||||
['admin', 'user', 'pending'].includes(columns[3].toLowerCase())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue