akveo / akveo/ng2-smart-table

Error when editing a same row twice

未关闭
#195 9 条评论 11 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
1.6k
派生
867
PR 合并指标
30 天内没有已合并 PR

描述

I am using ServerDataSource:

```
let data = event.newData;

this.tableService.update(data)
.then((result) => {
event.confirm.resolve(result[0]);
}).catch((err) => {
event.confirm.reject(err);
});
```

Error: Uncaught (in promise): Error: Element was not found in the dataset
Error: Element was not found in the dataset
at ServerDataSource.LocalDataSource.find (http://localhost:8080/vendor.bundle.js:842:31) [angular]
at LocalDataSource.update (http://localhost:8080/vendor.bundle.js:831:19) [angular]
at new ZoneAwarePromise (http://localhost:8080/polyfills.dll.js:4471:29) [angular]
at ServerDataSource.LocalDataSource.update (http://localhost:8080/vendor.bundle.js:830:16) [angular]
at http://localhost:8080/vendor.bundle.js:1578:26 [angular]
at Object.onInvoke (http://localhost:8080/vendor.dll.js:30260:37) [angular]
at Zone.run (http://localhost:8080/polyfills.dll.js:4033:43) [angular => angular]
at http://localhost:8080/polyfills.dll.js:4455:57 [angular]
at Object.onInvokeTask (http://localhost:8080/vendor.dll.js:30251:37) [angular]
at ZoneDelegate.invokeTask (http://localhost:8080/polyfills.dll.js:4194:40) [angular]
at Zone.runTask (http://localhost:8080/polyfills.dll.js:4071:47) [ => angular]
at drainMicroTaskQueue (http://localhost:8080/polyfills.dll.js:4353:35) []
at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/polyfills.dll.js:4269:25) []
at resolvePromise (http://localhost:8080/polyfills.dll.js:4421:31) [angular]
at resolvePromise (http://localhost:8080/polyfills.dll.js:4406:17) [angular]
at http://localhost:8080/polyfills.dll.js:4455:17 [angular]
at Object.onInvokeTask (http://localhost:8080/vendor.dll.js:30251:37) [angular]
at ZoneDelegate.invokeTask (http://localhost:8080/polyfills.dll.js:4194:40) [angular]
at Zone.runTask (http://localhost:8080/polyfills.dll.js:4071:47) [ => angular]
at drainMicroTaskQueue (http://localhost:8080/polyfills.dll.js:4353:35) []
at XMLHttpRequest.ZoneTask.invoke (http://localhost:8080/polyfills.dll.js:4269:25) []
------------- Elapsed: 14 ms; At: Fri Feb 24 2017 17:24:24 GMT-0300 (BRT) -------------
at getStacktraceWithUncaughtError (http://localhost:8080/polyfills.dll.js:3790:12) [angular]
at new LongStackTrace (http://localhost:8080/polyfills.dll.js:3784:22) [angular]
at Object.onScheduleTask (http://localhost:8080/polyfills.dll.js:3840:18) [angular]

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。