mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
move newObjectIds into if stmnt
This commit is contained in:
parent
655a76d92b
commit
db99873ee1
@ -1921,12 +1921,13 @@ define([
|
|||||||
function (addResults, updateResults, deleteResults) {
|
function (addResults, updateResults, deleteResults) {
|
||||||
layer._phantomLayer.clear();
|
layer._phantomLayer.clear();
|
||||||
|
|
||||||
|
// We use a different pattern if the attachmentsStore is valid and the layer has attachments
|
||||||
|
if (layer._attachmentsStore != null && layer.hasAttachments && tempObjectIds.length > 0) {
|
||||||
|
|
||||||
var newObjectIds = addResults.map(function (r) {
|
var newObjectIds = addResults.map(function (r) {
|
||||||
return r.objectId;
|
return r.objectId;
|
||||||
});
|
});
|
||||||
|
|
||||||
// We use a different pattern if the attachmentsStore is valid and the layer has attachments
|
|
||||||
if (layer._attachmentsStore != null && layer.hasAttachments && tempObjectIds.length > 0) {
|
|
||||||
layer._replaceFeatureIds(tempObjectIds, newObjectIds, function (success) {
|
layer._replaceFeatureIds(tempObjectIds, newObjectIds, function (success) {
|
||||||
dfd.resolve({
|
dfd.resolve({
|
||||||
id: id,
|
id: id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user