[PR #2507] [MERGED] fix TypeError: this.shortIds.split is not a function #5130

Closed
opened 2026-10-31 20:44:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/2507
Author: @Rudomitori
Created: 8/31/2024
Status: ✅ Merged
Merged: 9/2/2024
Merged by: @MHSanaei

Base: main ← Head: feature/short-ids-split


📝 Commits (2)

  • 0af630a fix TypeError: this.shortIds.split is not a function
  • 0925288 update

📊 Changes

4 files changed (+173 additions, -173 deletions)

View changed files

📝 sub/subJsonService.go (+2 -2)
📝 web/assets/js/model/xray.js (+1 -1)
📝 web/assets/js/util/utils.js (+169 -169)
📝 web/html/xui/form/tls_settings.html (+1 -1)

📄 Description

This PR fixes a bug with the following repro steps:

  1. Open page "Inbounds"
  2. Click "Add Inbound"
  3. Select option "Reality" in field "Security"
  4. Reset field "Short ID" via the icon button
  5. Click button "Create"
    Expected: A new item is created
    Actual: Nothing happends and there is an error in the console: "TypeError: this.shortIds.split is not a function"

I've not tested the fix, but I don't see what it can break


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/2507 **Author:** [@Rudomitori](https://github.com/Rudomitori) **Created:** 8/31/2024 **Status:** ✅ Merged **Merged:** 9/2/2024 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feature/short-ids-split` --- ### 📝 Commits (2) - [`0af630a`](https://github.com/MHSanaei/3x-ui/commit/0af630a481eb1df572c22b43864c5a92b0da588f) fix TypeError: this.shortIds.split is not a function - [`0925288`](https://github.com/MHSanaei/3x-ui/commit/0925288f16fca79685762b622cc43d8118b7d0c1) update ### 📊 Changes **4 files changed** (+173 additions, -173 deletions) <details> <summary>View changed files</summary> 📝 `sub/subJsonService.go` (+2 -2) 📝 `web/assets/js/model/xray.js` (+1 -1) 📝 `web/assets/js/util/utils.js` (+169 -169) 📝 `web/html/xui/form/tls_settings.html` (+1 -1) </details> ### 📄 Description This PR fixes a bug with the following repro steps: 1. Open page "Inbounds" 2. Click "Add Inbound" 3. Select option "Reality" in field "Security" 4. Reset field "Short ID" via the icon button 5. Click button "Create" Expected: A new item is created Actual: Nothing happends and there is an error in the console: "TypeError: this.shortIds.split is not a function" I've not tested the fix, but I don't see what it can break --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:44:54 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5130
No description provided.