UBERF-4229: Fix createAttachments runtime error (#3960)

Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
Maksim Karmatskikh 2023-11-17 17:54:31 +01:00 committed by GitHub
parent 89bfabb37d
commit ce10be3877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,14 @@
<!-- <!--
// Copyright © 2023 Hardcore Engineering Inc. // Copyright © 2023 Hardcore Engineering Inc.
// //
// Licensed under the Eclipse Public License, Version 2.0 (the "License"); // Licensed under the Eclipse Public License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. You may // you may not use this file except in compliance with the License. You may
// obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0 // obtain a copy of the License at https://www.eclipse.org/legal/epl-2.0
// //
// Unless required by applicable law or agreed to in writing, software // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// //
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
--> -->
@ -74,6 +74,8 @@
return return
} }
descriptionBox.createAttachments()
const old = getAttribute(client, object, key) const old = getAttribute(client, object, key)
if (description !== old) { if (description !== old) {
await updateAttribute(client, object, object._class, key, description) await updateAttribute(client, object, object._class, key, description)
@ -85,8 +87,6 @@
} else { } else {
haveUnsavedChanges = false haveUnsavedChanges = false
} }
await descriptionBox.createAttachments()
} }
let saveTrigger: any let saveTrigger: any