mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat: Replace this.$refs.refName as Vue with InstanceType<T> (no-changelog) (#6050)
* refactor: use InstanceType<T> for all this.$refs types * refactor: update refs type in N8nSelect * fix: remove inputRef non-null assertion Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * fix: remove non-null assertion --------- Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com>
This commit is contained in:
@@ -424,9 +424,9 @@ export default mixins(workflowHelpers).extend({
|
||||
this.$root.$emit('importWorkflowData', { data: workflowData });
|
||||
};
|
||||
|
||||
const input = this.$refs.importFile as HTMLInputElement;
|
||||
if (input !== null && input.files !== null && input.files.length !== 0) {
|
||||
reader.readAsText(input!.files[0]!);
|
||||
const inputRef = this.$refs.importFile as HTMLInputElement | undefined;
|
||||
if (inputRef?.files && inputRef.files.length !== 0) {
|
||||
reader.readAsText(inputRef.files[0]);
|
||||
}
|
||||
},
|
||||
async onWorkflowMenuSelect(action: string): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user