a8m.where when collection is undefined
未關閉
- 主要語言
- JavaScript
- 星號
- 2.9k
- 分支
- 319
- PR 合併指標
- 30 天內沒有已合併 PR
描述
When collection is undefined on where filter, we got:
"TypeError: Cannot read property 'filter' of undefined"
A simple check solve the problem.
if(!collection)) { return false; }
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Find the a8m.where filter implementation in the source code, likely in a file like angular-filter.js or a module file. Look for the where function that applies a filter to a collection. Add a guard clause to check if the collection is undefined and return false as suggested. Test by running any existing tests for the where filter or create a simple example to verify the fix.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, javascript
- 領域
- frontend
- Issue 類型
- 缺陷
- 難度
- 1/5
- 預估耗時
- 1 小時以內
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 40/100