Skip to content

Commit

Permalink
[Bug]: 引入打印模版软件包后,控制台报错。 #6045
Browse files Browse the repository at this point in the history
  • Loading branch information
ysc1234 committed Dec 28, 2023
1 parent 0d3c75f commit 22ae16c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/metadata-registrar/src/utils/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: [email protected]
* @Date: 2023-05-29 10:53:45
* @LastEditors: baozhoutao@steedos.com
* @LastEditTime: 2023-09-14 13:26:47
* @LastEditors: 易仕川 yishichuan@steedos.com
* @LastEditTime: 2023-12-28 10:09:18
* @Description:
*/
import { isJsonMap, JsonMap, has, getJsonMap } from '@salesforce/ts-types';
Expand Down Expand Up @@ -145,7 +145,7 @@ export const loadObjects = (filePath: string) => {
const matchedPaths: [string] = syncMatchFiles(filePatten);
_.each(matchedPaths, (matchedPath: string) => {
let json: any = loadFile(matchedPath);
const firstName = matchedPath.substring(matchedPath.lastIndexOf('/')+1, matchedPath.indexOf('.field'));
const firstName = matchedPath.substring(matchedPath.lastIndexOf('/')+1, matchedPath.indexOf('.field.yml'));
if (!json.name) {
json.name = firstName;
}
Expand Down

0 comments on commit 22ae16c

Please sign in to comment.