Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-25 18:50:27 +01:00
FIX: Wizard id increment fix (#177)
* increment object ids based on last object id * Bump version * Apply prettier
Dieser Commit ist enthalten in:
Ursprung
51553bc71d
Commit
f92c2cd574
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
|
@ -81,7 +81,8 @@ export default Component.extend({
|
||||||
|
|
||||||
let index = 0;
|
let index = 0;
|
||||||
if (items.length) {
|
if (items.length) {
|
||||||
index = items.length;
|
let last_item = items[items.length - 1];
|
||||||
|
index = Number(last_item.id.split("_").pop());
|
||||||
}
|
}
|
||||||
|
|
||||||
params.index = index;
|
params.index = index;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
# name: discourse-custom-wizard
|
# name: discourse-custom-wizard
|
||||||
# about: Create custom wizards
|
# about: Create custom wizards
|
||||||
# version: 1.17.0
|
# version: 1.17.1
|
||||||
# authors: Angus McLeod
|
# authors: Angus McLeod
|
||||||
# url: https://github.com/paviliondev/discourse-custom-wizard
|
# url: https://github.com/paviliondev/discourse-custom-wizard
|
||||||
# contact emails: angus@thepavilion.io
|
# contact emails: angus@thepavilion.io
|
||||||
|
|
Laden …
In neuem Issue referenzieren