mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-17 15:53:59 -06:00
fix: skip the blank last line of a user CSV import (#31374)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user