0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-19 23:31:11 +02:00

FIX: Wizard id increment fix (#177)

* increment object ids based on last object id

* Bump version

* Apply prettier
Dieser Commit ist enthalten in:
Angus McLeod 2022-01-31 17:42:26 +08:00 committet von GitHub
Ursprung 51553bc71d
Commit f92c2cd574
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -81,7 +81,8 @@ export default Component.extend({
let index = 0;
if (items.length) {
index = items.length;
let last_item = items[items.length - 1];
index = Number(last_item.id.split("_").pop());
}
params.index = index;

Datei anzeigen

@ -1,7 +1,7 @@
# frozen_string_literal: true
# name: discourse-custom-wizard
# about: Create custom wizards
# version: 1.17.0
# version: 1.17.1
# authors: Angus McLeod
# url: https://github.com/paviliondev/discourse-custom-wizard
# contact emails: angus@thepavilion.io