Skip to content

Commit

Permalink
Fix log spam after Abstract rename
Browse files Browse the repository at this point in the history
  • Loading branch information
BOLL7708 committed Apr 14, 2024
1 parent b938334 commit 3dc5db1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/Shared/Objects/Data/DataMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,12 @@ export default class DataMap {
const invalidClasses = ['string', 'number', 'array', 'boolean', 'object', '']
if(
invalidClasses.indexOf(className?.toLowerCase() ?? '') != -1
|| className?.startsWith('Abstract')
|| className?.startsWith('Option')
|| className?.startsWith('Data')
) return false

) {
return false
}
const has = className ? this._map.has(className) : false
if(!has) console.warn(`DataMap: "${className}" does not exist! Might not be enlisted.`)
return has
Expand Down

0 comments on commit 3dc5db1

Please sign in to comment.