Skip to content

Commit

Permalink
Merge branch 'master' of github.com:SoftwareBrothers/admin-bro
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojciech Krysiak authored and Wojciech Krysiak committed Sep 3, 2020
2 parents 10ce2dc + 4efb147 commit 8132b6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "admin-bro",
"version": "3.2.3",
"version": "3.2.4",
"description": "Admin panel for apps written in node.js",
"main": "index.js",
"types": "index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/admin-bro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,10 @@ class AdminBro {
* AdminBro.bundle('./path/to/new-sidebar/component', 'SidebarFooter')
*/
public static bundle(src: string, componentName?: OverridableComponent): string {
const nextId = Object.keys(global.UserComponents || {}).length + 1
const extensions = ['.jsx', '.js', '.ts', '.tsx']
let filePath = ''
const componentId = componentName || _.uniqueId('Component')
const componentId = componentName || `Component${nextId}`
if (src[0] === '/') {
filePath = src
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/adapters/base-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class BaseResource {
* Finds one Record in the Resource by its id
*
* @param {String} id uniq id of the Resource Record
* @return {Promise<BaseRecord>} record
* @return {Promise<BaseRecord> | null} record
* @abstract
*/
async findOne(id: string): Promise<BaseRecord | null> {
Expand Down

0 comments on commit 8132b6d

Please sign in to comment.