mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +03:00
UBERF-4229: Fix createAttachments runtime error (#3960)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
parent
89bfabb37d
commit
ce10be3877
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user