fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -16,6 +16,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
import { formatIdReference } from '../../helpers/safeDisplay.js';
|
||||
|
||||
export function latestTierURL(filters = {}, page = 1, snapshot = {}) {
|
||||
const params = new URLSearchParams({
|
||||
view: 'latest',
|
||||
@@ -83,5 +85,5 @@ export function identityOptionLabel(item) {
|
||||
const name =
|
||||
item.name || item.display_name || item.username || item.code || '';
|
||||
const identifier = item.name ? item.code : item.username;
|
||||
return `${name}${identifier && identifier !== name ? ` · ${identifier}` : ''} (#${item.id})${item.disabled_reason ? ` · ${item.disabled_reason}` : ''}`;
|
||||
return `${name}${identifier && identifier !== name ? ` · ${identifier}` : ''} (${formatIdReference(item.id)})${item.disabled_reason ? ` · ${item.disabled_reason}` : ''}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user